GraphicScale- Changing the scale factors of the graph
Changes the scaling factors with which figures are drawn in the graph.
- GraphicScale(SX,SY)
Parameters:
- (float) SX: Scaling factor for horizontal coordinates;
- (float) SY: Scaling factor for vertical coordinates.
Description:
Use GraphicScale to set scaling factors that affect the appearance of the graph. The instruction can be used in any part of the code and accepts floating-point values. Changing the horizontal and vertical ratio of the drawing has the effect of enlarging or shrinking the vectorial figures. The neutral scale factor that does not affect the design has a value of 1 (default).
The current scaling factors are contained in the constant ScaleX and ScaleY.
Examples:
- Draw three circles, varying their scale factor each time
GraphicScale(1,1)
Circle(30,30,15)
GraphicScale(2,1)
Circle(30,30,15)
GraphicScale(0.75,2.5)
Circle(30,30,15)