Skip to content

Instantly share code, notes, and snippets.

View UniDyne's full-sized avatar

D. Oliver Brown UniDyne

View GitHub Profile
/*
---
name: guilloche
script: guilloche.js
description: guilloche
provides: [Guilloche]
...
*/
&scoped db
&scoped-define dfin WZ-DFIN
def var WZ-DFIN as char form "x(65)" init '{&db}.df'.
&scoped-define dfout WZ-DFOUT
def var WZ-DFOUT as char form "x(65)" init '{&db}area.df'.
update WZ-DFIN WZ-DFOUT.
&scoped csvfile '{&db}area.csv'
&scoped filefield 1
@ear1grey
ear1grey / scale-example.js
Created November 1, 2017 14:39
Example of using context.scale in HTML5 canvas
let can = document.createElement('canvas');
let c = can.getContext("2d");
document.body.appendChild(can);
can.width = 300;
can.height = 500;
can.style = "border: dashed black thin;";
// Calculate scale value so that using dimensions