Skip to content

Build a renderer to sketch.systems #85

@silky

Description

@silky

sketch.systems is a neat website where you can play around with state-machines.

It'd be cool if you could define a state-machine here and have it output to a format compatible with their playground; there's only two things:

The "Spec":

My Awesome Sketch
  First State
    some event -> Second State
  Second State

And the the rendering code:

function render(model){
  let current_state_name = model.active_states[0].name;
  return $("h1",
           {style: {color: "darkBlue"}},
           `The current state is: ${current_state_name}`);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions