Skip to content

Commit

Permalink
short-circuit the qdg/draw routine for triangle
Browse files Browse the repository at this point in the history
  • Loading branch information
dgtized committed Jan 29, 2024
1 parent d3d3604 commit c72d21a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shimmers/common/quil_draws_geom.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@

(extend-type Triangle2
QuilDrawGeom
(draw [s]
(apply cq/draw-triangle (:points s)))
(draw [{[[ax ay] [bx by] [cx cy]] :points}]
(q/triangle ax ay bx by cx cy))
(contour-draw [s] (draw-contour (:points s))))

(extend-type Polygon2
Expand Down

0 comments on commit c72d21a

Please sign in to comment.