Basic Information

This page allows you to fork a new project from an existing project (Slice). The newly forked project will be listed in the IoT Projects page as a new entry. If you want to overwrite the existing project, please edit it instead.

* Photo URLs that end with any one of .jpg, .jpeg, .png or that are uploaded to the Gyazo web service in the PNG format (e.g.https://gyazo.com/hogehoge) are supported.

* Node.js entry point main: index.js and dependencies to the npm module dependencies: { f3js: (略) } will be automatically added and thus do not need to be in this form.

Card preview
Slice
'16/9/23 7:19
arc@dmz

Private Project

Unchecking this will make the project public and be listed in the IoT Projects page. The checkbox is unchecked by default since we want you to share the projects! Additionally, you cannot check this unless you are logged in. Once you make the project public, it cannot be undone. (Any edits to the project except for forking will also be public.)

Source Code

Provide the source code of a microcontroller or tiny computer in JavaScript. Node.js-based computers are supported. Require f3js package and use its API to design the device enclosure.

var f3js = require('f3js') , numSlices = 15 // number of slices [0, 100] , offsetX = 25 // offset X [0, 100] , offsetY = 25 // offset Y [0, 100] , margin = 5 // line margin [0, 10] , len = 100 // line length [10, 200] , horizontal = true; // direction (horizontal=on, vertical=off) for (var i=0;i<numSlices;i++) f3js.drawLine( offsetX + (horizontal ? 0 : i*margin) , offsetY + (horizontal ? i*margin : 0) , offsetX + (horizontal ? len : i*margin) , offsetY + (horizontal ? i*margin : len));
Customization

This content does not allow any customization.

Layout view options
Adding comments to variable declarations in the source code populate various GUI widgets in the "Customization" section depending on their types.

Design Alternatives

Modules

No modules are required for this project.

Layout
Program

Login first to use this feature.