Skip to content

shoebot/toybot-scenegraph

Repository files navigation

ToyBot Scenegraph

Join the chat at https://gitter.im/shoebot/toybot-scenegraph

This repository is the testing ground for the Shoebot 2 scene graph implementation.

Developer info: DEVELOPERS.md

Scene graph specification

A scene graph is a simple collection of nodes, which can be

  • Drawable shapes to be rendered
  • State changes that affect other nodes after them

Shape nodes

{
  "type": "path",
  "coords": [
    [0, 0],
    [0, 100],
    [100, 100],
    [100, 0]
  ]
}

State nodes

{
  "type": "state",
  "target": "fill",
  "value": [0.3, 0.2, 0.1, 0.7]
}
{
  "type": "state",
  "target": "size",
  "value": [800, 600]
}

About

Experimental scenegraph renderer for bot languages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages