Twoville: Difference between revisions

The educational technology and digital learning wiki
Jump to navigation Jump to search
(Created page with " {{stub}} == Introduction == {{quotation|Twoville is a programming language for generating two-dimensional SVG images that can be fed into vinyl or laser cutters. It also sup...")
 
Line 7: Line 7:


Unlike the similar [[Madeup]] environment for 3D printing, created by the same author, this environment is ''as of Jan 2020'' less well documented and does not include a block version.
Unlike the similar [[Madeup]] environment for 3D printing, created by the same author, this environment is ''as of Jan 2020'' less well documented and does not include a block version.
The syntax looks a mix of [[Logo]] and JavaScript.


Example fragments:
Example fragments:
Line 29: Line 31:
rect.color = [0.1, 0.1, 1]
rect.color = [0.1, 0.1, 1]
</source>
</source>


== Links ==
== Links ==

Revision as of 16:21, 24 January 2020

Draft

Introduction

“Twoville is a programming language for generating two-dimensional SVG images that can be fed into vinyl or laser cutters. It also supports animation at the syntactic level.” (teaching machines, retrieved Jan 2019.

The language

Unlike the similar Madeup environment for 3D printing, created by the same author, this environment is as of Jan 2020 less well documented and does not include a block version.

The syntax looks a mix of Logo and JavaScript.

Example fragments:

Defining a blue rectangle

width = 150
height = 100
with rectangle ()
  corner = [0,0]
  size = [20, 10]
  color = [0.1, 0.1, 1]

Below, an alternative notation, using property syntax:

width = 150
height = 100
rect = rectangle ()
rect.corner = [0,0]
rect.size = [20, 10]
rect.color = [0.1, 0.1, 1]

Links

  • Introducing Twoville, February 24, 2018 by Chris Johnson. This piece explains some early animation features