You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
add an optional client value to the Code Object:
"client": "creatureprogrammer" for creatures programmed with Code Créatures workshop dedicated page
Or
"client": "programmer" for the generic objects created from the generic programmer
And a mediatype (mime) value :
"mediatype": "text/processing"
or
"mediatype": "text/javascript"
This is useful because:
the client (the code editor page for example) can decide to edit only the code objects it created itself, if it doesn't know how to handle the rest.
the renderer (playground page) can make informed choices on how to render things. Example: d3js code doesn't need a canvas and could be rendered without using one.
The text was updated successfully, but these errors were encountered:
client and mediatype are now send from programmer (standard) and creature programmer and stored server side.
But they are not actually used neither by the creature programmer (where it could be useful to sort creatures and standard processing script) nor the renderer (where it could be useful to render differently say d3js, processing pde script and p5js scripts)
juliendorra
changed the title
"client" and "mediatype" value in Code Objects
Use "client" and "mediatype" value in Code Objects to selectively show and/or choose how to render code
Jun 13, 2017
add an optional client value to the Code Object:
"client": "creatureprogrammer" for creatures programmed with Code Créatures workshop dedicated page
Or
"client": "programmer" for the generic objects created from the generic programmer
And a mediatype (mime) value :
"mediatype": "text/processing"
or
"mediatype": "text/javascript"
This is useful because:
The text was updated successfully, but these errors were encountered: