Category:Wren-polygon: Difference between revisions

From Rosetta Code
Content added Content deleted
(Created page for 'Wren-polygon' module.)
 
(Changed blurb following addition of two new classes.)
Line 1: Line 1:
{{library}}
{{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 a single class, Polygon.
'''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 three classes: Polygon, Rectangle and Square.


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.
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.

Revision as of 17:14, 22 August 2021

Library
This is an example of a library. You may see a list of other libraries used on Rosetta Code at Category:Solutions by Library.

Wren-polygon is a module which enables arbitrary polygons to be drawn and/or filled within a DOME script using the Wren programming language. It consists of three classes: Polygon, Rectangle and Square.

It is the twenty-second in a series of modules (listed on the language's 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.

To use it you need to copy the source code (in the 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 module which is part of the DOME framework. As such it can only be used in a DOME script.