Using quil.core/ellipse to draw an 8 pattern in clojure -
i want draw sketch 8 pattern. know how draw circles in counterclockwise , clockwise directions. not know how combine them.
(defn draw-state [state] (let [x (* 150 (quil.core/cos angle)) y (* 150 (quil.core/sin angle))] (quil.core/ellipse x y 100 100) (quil.core/ellipse y x 100 100)))
this function draw 2 circles in opposite directions. how draw sketch 8 pattern?
a polar equation 8-type of curve =
r^2 = cos[2t] (sec[t])^4
where r = radius, t = angle
you start this.
Comments
Post a Comment