Skip to content

Instantly share code, notes, and snippets.

View jaukia's full-sized avatar

Janne Aukia jaukia

  • Robocorp
  • Helsinki, Finland
View GitHub Profile
@jaukia
jaukia / boxes.js
Created January 15, 2019 15:52
Boxes with g9
var initialData = {
size: 100.0,
padding: 20.0
}
function render(data, ctx) {
for(var i=0; i<30; i++) {
var padding = data.padding;
var rowItems = Math.floor(ctx.width/(data.size+padding));
var step = data.size+padding;
Basic obot program:
1. Create a file example : test.robot
2. Add the bare minimum code:
#--START--
*** Settings ***