This file contains 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
/** | |
* port of Noise Wave | |
* by Daniel Shiffman from processing to plask | |
* | |
* Using Perlin Noise to generate a wave-like pattern. | |
*/ | |
var plask = require('plask'); | |
var noise = require('./classicalNoise').noise; |
This file contains 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
/** | |
* Additive Wave | |
* by Daniel Shiffman. | |
* | |
* Create a more complex wave by adding two waves together. | |
*/ | |
var plask = require('plask'); | |
var xspacing = 8; // How far apart should each horizontal location be spaced | |
var w; // Width of entire wave |
This file contains 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
package ${enclosing_package}; | |
import processing.core.*; | |
import processing.opengl.*; | |
import javax.media.opengl.GL; | |
public class ${primary_type_name} extends PApplet { | |
static public void main(String args[]) { | |
PApplet.main(new String[] { /* "--present", */ "${enclosing_package}.${primary_type_name}" }); |
This file contains 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
package yourPackage; | |
import java.awt.Color; | |
import org.sunflow.math.Point3; | |
import org.sunflow.math.Vector3; | |
import processing.core.*; | |
import sunflowapiapi.*; |
This file contains 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
module Penrose where | |
import List(foldr, map) | |
import Graphics.Collage(..) | |
import Graphics.Element(..) | |
import Color(..) | |
goldenRatio = (1 + sqrt 5) / 2 | |
type alias Point = (Float, Float) | |
type Triangle | |
= Kite (Point, Point, Point) |
This file contains 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
import control.ControlFrame; | |
import processing.core.PApplet; | |
public class BackgroundColor { | |
private final PApplet p; | |
@ControlElement(properties = {"min=0", "max=255"}, x = 10, y = 10) | |
private float red = 0; | |
NewerOlder