1.2.3-SNAPSHOT permalink Arrow_down_16x16
  • (tint sketch gray)
  • (tint sketch gray alpha)
  • (tint sketch x y z)
  • (tint sketch x y z a)

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:1327 top

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

Comments top

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