Table of Contents Chapter Index Previous Slide Next Slide 357
Syntax: PROTO

Creating new node types
Syntax: PROTO
  • A PROTO statement declares a new node type
  • name - the new node type name
  • fields and events - interface to the prototype
  • PROTO SpiralBall [
        field SFFloat cycles 1.0
        field SFFloat radius 1.0
        . . .
        eventIn SFFloat set_fraction
    ] { . . . }