1.2.3-SNAPSHOT Arrow_down_16x16
  • (stroke sketch gray)
  • (stroke sketch gray alpha)
  • (stroke sketch x y z)
  • (stroke sketch x y z alpha)

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source incanter/processing.clj:1199 top

(defn stroke
  ""
  ([^PApplet sketch gray]
   (cond
     (string? gray)
      (.stroke sketch (color sketch gray))
     (integer? gray)
       (.stroke sketch (int gray))
     (float? gray)
       (.stroke sketch (float gray))))
  ([^PApplet sketch gray alpha]
   (cond
     (string? gray)
      (.stroke sketch (color sketch gray) (int alpha))
     (integer? gray)
       (.stroke sketch (int gray) (int alpha))
     (float? gray)
       (.stroke sketch (float gray) (float alpha))))
  ([^PApplet sketch x y z]
     (.stroke sketch (float x) (float y) (float z)))
  ([^PApplet sketch x y z alpha]
     (.stroke sketch (float x) (float y) (float z) (float alpha))))
Vars in incanter.processing/stroke: cond defn float float? int integer? string?
Used in 0 other vars

Comments top

No comments for stroke. Log in to add a comment.