Category:Wren-polygon: Difference between revisions
(Created page for 'Wren-polygon' module.) |
m (Now using internal links to related pages) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{library}} |
{{library}} |
||
'''Wren-polygon''' is a module which enables arbitrary polygons to be drawn and/or filled within a [ |
'''Wren-polygon''' is a module which enables arbitrary polygons to be drawn and/or filled within a [[:Category:DOME|DOME]] script using the Wren programming language. It consists of four classes: Polygon, Rectangle, Square and Selectable. 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 [ |
It is the twenty-second in a series of modules (listed on the language's [[: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. |
||
To use it you need to copy the source code (in the [ |
To use it you need to copy the source code (in the [[: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 |
Wren-polygon depends on the graphics and math modules which are part of the DOME framework. As such it can only be used in a DOME script. |
Latest revision as of 15:09, 9 May 2023
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 four classes: Polygon, Rectangle, Square and Selectable. 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 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 and math modules which are part of the DOME framework. As such it can only be used in a DOME script.
Pages in category "Wren-polygon"
The following 8 pages are in this category, out of 8 total.