Category talk:Wren-polygon: Difference between revisions

Content added Content deleted
m (→‎Source code: Infrastructure changes to enable all polygons to be treated as buttons and to make it easier to track button clicks.)
m (→‎Source code: Fixed syntax highlighting.)
Line 1: Line 1:
===Source code===
===Source code===


<lang ecmascript>/* Module "polygon.wren" */
<syntaxhighlight lang=ecmascript>/* Module "polygon.wren" */


import "graphics" for Canvas, Color
import "graphics" for Canvas, Color
Line 239: Line 239:
// Properties.
// Properties.
side { _s }
side { _s }
}</lang>
}</syntaxhighlight>