Skip to content

Commit

Permalink
[#15] Update doc with implemented functions
Browse files Browse the repository at this point in the history
  • Loading branch information
jfacorro committed Nov 24, 2018
1 parent b02e797 commit 89d22e5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
6 changes: 3 additions & 3 deletions docs/quil.core.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
- [ ] [`create-graphics`](https://github.com/quil/quil/blob/2.8.0/src/cljc/quil/core.cljc#L1087) - "Creates and returns a new PGraphics object of the types :p2d, :p3d, :java2d, :pdf"
- [ ] [`create-image`](https://github.com/quil/quil/blob/2.8.0/src/cljc/quil/core.cljc#L1126) - "Creates a new PImage (the datatype for storing images)"
- [x] [`current-fill`](https://github.com/quil/quil/blob/2.8.0/src/cljc/quil/core.cljc#L1147) - "Return the current fill color"
- [ ] [`current-frame-rate`](https://github.com/quil/quil/blob/2.8.0/src/cljc/quil/core.cljc#L1693) - "Returns the current framerate"
- [x] [`current-frame-rate`](https://github.com/quil/quil/blob/2.8.0/src/cljc/quil/core.cljc#L1693) - "Returns the current framerate"
- [ ] [`current-graphics`](https://github.com/quil/quil/blob/2.8.0/src/cljc/quil/core.cljc#L32) - "Graphics currently used for drawing"
- [x] [`current-stroke`](https://github.com/quil/quil/blob/2.8.0/src/cljc/quil/core.cljc#L1158) - "Return the current stroke color"
- [ ] [`cursor`](https://github.com/quil/quil/blob/2.8.0/src/cljc/quil/core.cljc#L1169) - "Sets the cursor to a predefined symbol or makes it visible if already hidden (after no-cursor was called)"
Expand Down Expand Up @@ -125,7 +125,7 @@
- [ ] [`mag`](https://github.com/quil/quil/blob/2.8.0/src/cljc/quil/core.cljc#L2278) - "Calculates the magnitude (or length) of a vector"
- [ ] [`map-range`](https://github.com/quil/quil/blob/2.8.0/src/cljc/quil/core.cljc#L2297) - "Re-maps a number from one range to another"
- [ ] [`mask-image`](https://github.com/quil/quil/blob/2.8.0/src/cljc/quil/core.cljc#L2313) - "Masks part of an image from displaying by loading another image and using it as an alpha channel"
- [ ] [`millis`](https://github.com/quil/quil/blob/2.8.0/src/cljc/quil/core.cljc#L2335) - "Returns the number of milliseconds (thousandths of a second) since starting the sketch"
- [x] [`millis`](https://github.com/quil/quil/blob/2.8.0/src/cljc/quil/core.cljc#L2335) - "Returns the number of milliseconds (thousandths of a second) since starting the sketch"
- [ ] [`minute`](https://github.com/quil/quil/blob/2.8.0/src/cljc/quil/core.cljc#L2348) - "Returns the current minute as a value from 0 - 59"
- [ ] [`model-x`](https://github.com/quil/quil/blob/2.8.0/src/cljc/quil/core.cljc#L2360) - "Returns the three-dimensional x, y, z position in model space"
- [ ] [`model-y`](https://github.com/quil/quil/blob/2.8.0/src/cljc/quil/core.cljc#L2375) - "Returns the three-dimensional x, y, z position in model space"
Expand Down Expand Up @@ -231,7 +231,7 @@
- [ ] [`stroke-join-modes`](https://github.com/quil/quil/blob/2.8.0/src/cljc/quil/core.cljc#L51)
- [x] [`stroke-weight`](https://github.com/quil/quil/blob/2.8.0/src/cljc/quil/core.cljc#L3951) - "Sets the width of the stroke used for lines, points, and the border around shapes"
- [ ] [`tan`](https://github.com/quil/quil/blob/2.8.0/src/cljc/quil/core.cljc#L3963) - "Calculates the ratio of the sine and cosine of an angle"
- [ ] [`target-frame-rate`](https://github.com/quil/quil/blob/2.8.0/src/cljc/quil/core.cljc#L3978) - "Returns the target framerate specified with the fn frame-rate"
- [x] [`target-frame-rate`](https://github.com/quil/quil/blob/2.8.0/src/cljc/quil/core.cljc#L3978) - "Returns the target framerate specified with the fn frame-rate"
- [x] [`text`](https://github.com/quil/quil/blob/2.8.0/src/cljc/quil/core.cljc#L4020) - "Draws text to the screen in the position specified by the x and y parameters and the optional z parameter"
- [ ] [`text-align`](https://github.com/quil/quil/blob/2.8.0/src/cljc/quil/core.cljc#L4048) - "Sets the current alignment for drawing text"
- [ ] [`text-ascent`](https://github.com/quil/quil/blob/2.8.0/src/cljc/quil/core.cljc#L4085) - "Returns the ascent of the current font at its current size"
Expand Down
2 changes: 0 additions & 2 deletions src/doodler/core.clje
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
#erl[r g b alpha]))

(defn- save-current-stroke
"Save current stroke color vector in the internal state. It can be accessed using (current-stroke) function."
[color]
(set! *internal-state* (assoc *internal-state* :current-stroke color)))

Expand Down Expand Up @@ -81,7 +80,6 @@
(wxDC/clear *canvas*))))

(defn- save-current-fill
"Save current fill color vector in the internal state. It can be accessed using (current-fill) function."
[color]
(set! *internal-state* (assoc *internal-state* :current-fill color)))

Expand Down
8 changes: 4 additions & 4 deletions src/doodler/examples/events.clje
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
{:x 0 :y 0})

(defn draw [state]
(d/stroke (rand-int 255))
(d/stroke-weight (rand-int 10))
(d/fill (rand-int 255))
(d/circle (:x state) (:y state) (rand-int 50)))
(d/stroke (d/random 255))
(d/stroke-weight (d/random 10))
(d/fill (d/random 255))
(d/circle (:x state) (:y state) (d/random 50)))

(d/defsketch sketch
:title "Handling events"
Expand Down

0 comments on commit 89d22e5

Please sign in to comment.