6.4 KiB
6.4 KiB
orx-shade-styles
Shader based fills and strokes, including various types of gradient fills.
Demos
clip/DemoClip01
clip/DemoClip02
clip/DemoClip03
composed/DemoComposed01
The main entry point of the application that sets up the visual program.
This method creates a graphical program with a 720x720 window and uses a rotating gradient-shaded rectangle as the primary visual element. It demonstrates the use of gradient shading and clipping through a compositional approach.
The method performs the following actions:
- Configures the application window size.
- Constructs a conic gradient with a rotation of 54 degrees and full circular coverage.
- Creates a star-shaped clip with configurable sharpness, radius, and number of sides.
- Combines the gradient and clip into a composite shading style.
- Defines a program loop where the rectangle with the gradient and clip combination rotates around the center of the canvas while being redrawn continuously.























