Skip to content

Instantly share code, notes, and snippets.

View ff6347's full-sized avatar
🤖
updating status…

Fabian Morón Zirfas ff6347

🤖
updating status…
View GitHub Profile
@ff6347
ff6347 / loadUrl.jsx
Created April 11, 2017 06:41 — forked from mericson/loadUrl.jsx
Loads data from a URL in Adobe Illustrator! (Uses Bridge behind the scenes)
var doc = app.activeDocument;
var docPath = doc.path;
function loadUrl(url, callback) {
var bt = new BridgeTalk();
bt.target = 'bridge' ;
@ff6347
ff6347 / loadUrlSynchronously.jsx
Created April 11, 2017 06:40 — forked from daluu/loadUrlSynchronously.jsx
Loads data from a URL in Adobe Illustrator, synchronously! (Uses Bridge behind the scenes)
BridgeTalk.prototype.sendSynch = function(timeout) {
var self = this;
self.onResult = function(res) {
this.result = res.body;
this.complete = true;
}
self.complete = false;
self.send();
if (timeout) {
function setup() {
createCanvas(500,500);
colorMode(RGB,255,255,255,100);
background(255);
}
function draw() {
var a =250;
var b =250;
var c =100;
function setup() {
createCanvas (400, 400);
background(0);
}
function draw() {
var a = 0;
var b = 5;
var c = 400;
@ff6347
ff6347 / color-map.js
Created December 12, 2016 11:31 — forked from josues/color-map.js
Hour-of-Code_Color_JP
var a = 0;
var b = 0;
var c = 0;
function setup() {
createCanvas(500, 500);
background(255);
noStroke();
colorMode(HSB);
var s = random(440, 450);
function setup() {
createCanvas(500, 500); // windowWidth, windowHeight is another Canvas shape mesurement
colorMode(RGB);
background(255, 253, 13, 70);
//saveFrames('tunnel_', 'jpg', 5, 25);
frameRate(10);
}
function draw() {
var distribution = new Array(500);
function setup() {
createCanvas(500, 500);
for (var i = 0; i < distribution.length; i++) {
distribution[i] = floor(randomGaussian(random(height/4),random(width*2)));
}
background(204);
translate(height/2, width/2);
for (var i = 0; i < distribution.length; i++) {
@ff6347
ff6347 / translation.js
Last active November 27, 2016 17:38 — forked from josues/translation.js
https://www.openprocessing.org/sketch/62168 Random Distribution In Circle – Homogeneous by FELD
function setup() {
createCanvas(500, 500);
smooth();
}
function draw() {
background(255);
noStroke();
fill(0);
ellipseMode(CENTER);
var initialOffset = 10;
var offset = 25;
var globalCircleSize = 15;
var col = {
r: 180,
g: 63,
b: 203
}
function setup() {