Component: Canvas ( Indicator)

From Flowcode Help
Revision as of 15:07, 5 December 2023 by Wiki bot (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
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

Fc9-comp-macro.png Clear
Clear the canvas to the background colour 
Fc9-void-icon.png - VOID Return


ClearToColour

Fc9-comp-macro.png ClearToColour
Sets a new background colour and clears the canvas 
Fc9-s32-icon.png - LONG col
The new colour for the background 
Fc9-void-icon.png - VOID Return


DrawRectangle

Fc9-comp-macro.png DrawRectangle
Draw the outline of a rectangle on the canvas 
Fc9-s32-icon.png - LONG x0
Start coordinate 
Fc9-s32-icon.png - LONG y0
Start coordinate 
Fc9-s32-icon.png - LONG dx
Width 
Fc9-s32-icon.png - LONG dy
Height 
Fc9-s32-icon.png - LONG col
Outline colour 
Fc9-u8-icon.png - BYTE thickness
Width of the line 
Fc9-void-icon.png - VOID Return


FillRectangle

Fc9-comp-macro.png FillRectangle
Draw a filled rectangle on the canvas 
Fc9-s32-icon.png - LONG x0
Start coordinate 
Fc9-s32-icon.png - LONG y0
Start coordinate 
Fc9-s32-icon.png - LONG dx
Width 
Fc9-s32-icon.png - LONG dy
Height 
Fc9-s32-icon.png - LONG col
Fill colour 
Fc9-void-icon.png - VOID Return


PlotLine

Fc9-comp-macro.png PlotLine
Draws a line on the canvas 
Fc9-s32-icon.png - LONG x0
Start coordinate 
Fc9-s32-icon.png - LONG y0
Start coordinate 
Fc9-s32-icon.png - LONG x1
End coordinate 
Fc9-s32-icon.png - LONG y1
End coordinate 
Fc9-s32-icon.png - LONG col
Colour of the line 
Fc9-u8-icon.png - BYTE thickness
Width of the line 
Fc9-void-icon.png - VOID Return


PlotPoint

Fc9-comp-macro.png PlotPoint
Draw a pixel on the canvas 
Fc9-s32-icon.png - LONG x
Coordinate 
Fc9-s32-icon.png - LONG y
Coordinate 
Fc9-s32-icon.png - LONG col
Pixel colour 
Fc9-void-icon.png - VOID Return


Property reference

Fc9-prop-icon.png Properties
Fc9-conn-icon.png Canvas
Fc9-type-2-icon.png Background colour
The colour of the canvas background 
Fc9-type-7-icon.png Border
Set to draw a border around the canvas 
Fc9-conn-icon.png Advanced
Fc9-type-10-icon.png Custom Attributes