3D Lingo Dictionary > O-S > style |  |

style

Syntax

    member(whichCastmember).model(whichModel).toon.style
    member(whichCastmember).model(whichModel).shader.style
    member(whichCastmember).shader(whichShader).style

Description

3D `toon` modifier and `painter` shader property; indicates the way the `toon` modifier and `painter` shader apply color to a model. Possible values are as follows:

| `#toon` uses sharp transitions between colors.
| `#gradient` uses smooth transitions between colors. This is the default value.
| `#blackAndWhite` uses two-color black and white.

The number of colors used by the `toon` modifier and `painter` shader is set with the `colorSteps` property of the modifier or shader.

Example

This statement sets the `style` property of the `toon` modifier for the model named Teapot to `#blackAndWhite`. The model will be rendered in two-color black and white.

    member("Shapes").model("Teapot").toon.style = #blackAndWhite