GraphicScale- Changing the scale factors of the graph
Changes the scaling factors with which figures are drawn in the graph.
- (float) SX: Scaling factor for horizontal coordinates;
- (float) SY: Scaling factor for vertical coordinates.
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.
- Draw three circles, varying their scale factor each time