Component: Canvas ( Indicator): Difference between revisions
Appearance
m Text replacement - "width="10%" align="center" style="background-color:#D8C9D8;"" to "width="10%" align="center" class="mtx-class-macrohead"" |
m Text replacement - "width="90%" style="background-color:#D8C9D8; color:#4B008D;"" to "width="90%" class="mtx-class-macrohead"" |
||
| Line 37: | Line 37: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Clear''' | ||
|- | |- | ||
| colspan="2" | Clear the canvas to the background colour | | colspan="2" | Clear the canvas to the background colour | ||
| Line 51: | Line 51: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ClearToColour''' | ||
|- | |- | ||
| colspan="2" | Sets a new background colour and clears the canvas | | colspan="2" | Sets a new background colour and clears the canvas | ||
| Line 70: | Line 70: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''DrawRectangle''' | ||
|- | |- | ||
| colspan="2" | Draw the outline of a rectangle on the canvas | | colspan="2" | Draw the outline of a rectangle on the canvas | ||
| Line 114: | Line 114: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''FillRectangle''' | ||
|- | |- | ||
| colspan="2" | Draw a filled rectangle on the canvas | | colspan="2" | Draw a filled rectangle on the canvas | ||
| Line 153: | Line 153: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''PlotLine''' | ||
|- | |- | ||
| colspan="2" | Draws a line on the canvas | | colspan="2" | Draws a line on the canvas | ||
| Line 197: | Line 197: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''PlotPoint''' | ||
|- | |- | ||
| colspan="2" | Draw a pixel on the canvas | | colspan="2" | Draw a pixel on the canvas | ||
| Line 227: | Line 227: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Properties''' | ||
|- | |- | ||
|- | |- | ||
Revision as of 14:23, 13 July 2026
| Author | MatrixTSL |
| Version | 0.1 |
| Category | Indicator |
Canvas component
Creates a simple canvas for drawing.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_WEBEXP_Canvas.fcsx
Please click here to view the component source code (Beta): FC_Comp_Source_WEBEXP_Canvas.fcsx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
Clear
| Clear | |
| Clear the canvas to the background colour | |
| Return | |
ClearToColour
| ClearToColour | |
| Sets a new background colour and clears the canvas | |
| col | |
| The new colour for the background | |
| Return | |
DrawRectangle
FillRectangle
| FillRectangle | |
| Draw a filled rectangle on the canvas | |
| x0 | |
| Start coordinate | |
| y0 | |
| Start coordinate | |
| dx | |
| Width | |
| dy | |
| Height | |
| col | |
| Fill colour | |
| Return | |
PlotLine
PlotPoint
| PlotPoint | |
| Draw a pixel on the canvas | |
| x | |
| Coordinate | |
| y | |
| Coordinate | |
| col | |
| Pixel colour | |
| Return | |
Property reference
| Properties | |
| Canvas | |
| Background colour | |
| The colour of the canvas background | |
| Border | |
| Set to draw a border around the canvas | |
| Advanced | |
| Custom Attributes | |