Category:Wren-polygon: Difference between revisions

Changed blurb following infrastructure changes.
(Changed blurb following addition of two new classes.)
(Changed blurb following infrastructure changes.)
Line 1:
{{library}}
'''Wren-polygon''' is a module which enables arbitrary polygons to be drawn and/or filled within a [https://rosettacode.org/wiki/Category:DOME DOME] script using the Wren programming language. It consists of threefour classes: Polygon, Rectangle, Square and SquareSelectable. The last named is an abstract class from which the other three inherit and enables them to be treated as buttons.
 
It is the twenty-second in a series of modules (listed on the language's [https://rosettacode.org/wiki/Category:Wren main page]) designed to assist with writing Rosetta Code tasks so the same code does not have to be written or copy/pasted time and time again thereby bloating a task's script code unnecessarily.
Line 6:
To use it you need to copy the source code (in the [https://rosettacode.org/wiki/Category_talk:Wren-polygon talk page]) to a text file called ''polygon.wren'' and place this in the same directory as the importing script so DOME can find it.
 
Wren-polygon depends on the graphics moduleand math modules which isare part of the DOME framework. As such it can only be used in a DOME script.
9,476

edits