Files
orx/orx-shade-styles
2025-08-27 19:48:23 +00:00
..
2025-08-04 12:00:35 +02:00
2025-08-27 19:48:23 +00:00

orx-shade-styles

Shader based fills and strokes, including various types of gradient fills.

Demos

clip/DemoClip01

clip-DemoClip01Kt

source code

clip/DemoClip02

clip-DemoClip02Kt

source code

clip/DemoClip03

clip-DemoClip03Kt

source code

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:

  1. Configures the application window size.
  2. Constructs a conic gradient with a rotation of 54 degrees and full circular coverage.
  3. Creates a star-shaped clip with configurable sharpness, radius, and number of sides.
  4. Combines the gradient and clip into a composite shading style.
  5. Defines a program loop where the rectangle with the gradient and clip combination rotates around the center of the canvas while being redrawn continuously.

composed-DemoComposed01Kt

source code

gradients/DemoGradient01

gradients-DemoGradient01Kt

source code

gradients/DemoGradient02

gradients-DemoGradient02Kt

source code

gradients/DemoGradient03

gradients-DemoGradient03Kt

source code

gradients/DemoGradient04

gradients-DemoGradient04Kt

source code

gradients/DemoGradient05

gradients-DemoGradient05Kt

source code

gradients/DemoGradient06

gradients-DemoGradient06Kt

source code

gradients/DemoGradient07

gradients-DemoGradient07Kt

source code

gradients/DemoGradient08

gradients-DemoGradient08Kt

source code

gradients/DemoGradient09

gradients-DemoGradient09Kt

source code

image/DemoImageFill01

image-DemoImageFill01Kt

source code

image/DemoImageFill02

image-DemoImageFill02Kt

source code

image/DemoImageFill03

image-DemoImageFill03Kt

source code

noise/DemoBlueNoise01

noise-DemoBlueNoise01Kt

source code

noise/DemoSimplex01

noise-DemoSimplex01Kt

source code

noise/DemoWhiteNoise01

noise-DemoWhiteNoise01Kt

source code

patterns/DemoPatterns01

patterns-DemoPatterns01Kt

source code

patterns/DemoPatterns02

patterns-DemoPatterns02Kt

source code

patterns/DemoPatterns03

patterns-DemoPatterns03Kt

source code

spatial/DemoHemisphere01

spatial-DemoHemisphere01Kt

source code

spatial/DemoVisualizeNormals01

spatial-DemoVisualizeNormals01Kt

source code