This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //first | |
| strokeWeight(1); | |
| stroke(35,31,32); | |
| bezier(377,-692,380,-691,382,-687,386,-687); | |
| bezier(386,-687,372,-701,346,-695,334,-681); | |
| bezier(334,-681,299,-636,350,-600,393,-618); | |
| //second | |
| fill(35,31,32); | |
| bezier(420,-690,423,-687,420,-683,423,-679); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| size(1000,1000); | |
| background(255); | |
| strokeWeight(3); | |
| stroke(20,21,24); | |
| bezier(189,179,175,165,149,171,137,185); | |
| bezier(137,185,102,230,153,266,196,248); | |
| strokeWeight(1); | |
| stroke(20,21,24); | |
| bezier(180,173,183,174,185,179,189,179); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // by dave @ beesandbombs.tumblr.com >:) | |
| void setup() { | |
| setup_(); | |
| result = new int[width*height][3]; | |
| result_ = new int[width*height][3]; | |
| } | |
| int[][] result, result_; | |
| float time; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| groups = DAME.GetGroups() | |
| groupCount = as3.tolua(groups.length) -1 | |
| FileExt = as3.tolua(VALUE_FileExt) | |
| csvDir = as3.tolua(VALUE_CSVDir) | |
| -- Output tilemap data | |
| function exportMapCSV( mapLayer, layerFileName, groupName ) | |
| -- get the raw mapdata. To change format, modify the strings passed in (rowPrefix,rowSuffix,columnPrefix,columnSeparator,columnSuffix) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Scripting: | |
| (1) Here is an example script (all one file): | |
| #(init) input, sprite -- An "init" event (runs once) that initializes the "input" and "sprite" packages | |
| Sprite.AddTrail(-1); -- This function is called from the sprite package (without sprite, it will crash) | |
| #(init) controller -- Another "init" event that initializers the "controller" package (so that it can be used in update) | |
| #(update) input, controller -- An "update" event that uses the "input" and "controller" packages | |
| if (Input.Left()) | |
| Controller.Move(-100.0); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| data Color = Red | Black | Rgb Int Int Int | |
| toString : Color -> String | |
| toSring color = | |
| case color of | |
| Red -> "Red" | |
| Black -> "Black" | |
| Rgb r g b -> "Other" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var old_time = new Date(); | |
| for (var i = 0; i <= 1000000000; i++) { | |
| //console.log(i); | |
| } | |
| var new_time = new Date(); | |
| var time_passed = new_time - old_time; | |
| //console.log(time_passed); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var r, g, b; | |
| function setup() { | |
| createCanvas(windowWidth, windowHeight); | |
| //drums = EDrums('x*o*x*o-'); | |
| //follow = Follow(drums); | |
| drums = EDrums( 'x*o*x*o-' ) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var count = 0; | |
| var command; | |
| var interval; | |
| var directory = "~/Desktop/"; | |
| var sys = require('sys') | |
| var exec = require('child_process').exec; | |
| function puts(error, stdout, stderr) { sys.puts(stdout) } | |
| function takeScreen() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| console.log("Hello World!"); |
OlderNewer