diff --git a/art/BinaryBox/project.js b/art/BinaryBox/project.js new file mode 100644 index 000000000..210e60267 --- /dev/null +++ b/art/BinaryBox/project.js @@ -0,0 +1,94 @@ +/* +@title: Binary Box +@author: Derek Gou +@snapshot: snap1.png +*/ + +// set dimensions +const width = 125; +const height = 125; + +setDocDimensions(width, height); + +// store final lines here +var finalLines = []; + +// create box +const screen = [ + [20, 20], + [20, height-40], + [width-30, height-40], + [width-30, 20], + [20, 20] +]; +const edge1 = [ + [20, height-40], + [width-30, height-40], + [width-20, height-30], + [30, height-30], + [20, height-40], +]; +const edge2 = [ + [width-30, 20], + [width-30, height-40], + [width-20, height-30], + [width-20, 30], + [width-30, 20], +]; + +// add the box to the final lines +finalLines.push(screen); +finalLines.push(edge1); +finalLines.push(edge2); + + +// generate and draw binary +for (let x = 0; x