Jump to content

Component: Canvas ( Indicator)

From Flowcode Help
Revision as of 14:10, 27 November 2023 by Wiki bot (talk | contribs) (Created page with "{| style="width:50%" |- | width="20%" style="color:gray;" | Author | MatrixTSL |- | width="20%" style="color:gray;" | Version | 0.1 |- | width="20%" style="color:gray;...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 
- VOID Return


DrawRectangle

DrawRectangle
Draw the outline of a rectangle on the canvas 
- UINT x0
Start coordinate 
- UINT y0
Start coordinate 
- UINT dx
Width 
- UINT dy
Height 
- ULONG col
Outline colour 
- BYTE thickness
Width of the line 
- VOID Return


FillRectangle

FillRectangle
Draw a filled rectangle on the canvas 
- UINT x0
Start coordinate 
- UINT y0
Start coordinate 
- UINT dx
Width 
- UINT dy
Height 
- ULONG col
Fill colour 
- VOID Return


PlotLine

PlotLine
Draws a line on the canvas 
- UINT x0
Start coordinate 
- UINT y0
Start coordinate 
- UINT x1
End coordinate 
- UINT y1
End coordinate 
- ULONG col
Colour of the line 
- BYTE thickness
Width of the line 
- VOID Return


PlotPoint

PlotPoint
Draw a pixel on the canvas 
- UINT x
Coordinate 
- UINT y
Coordinate 
- ULONG col
Pixel colour 
- VOID 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