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
// Rotating Ball 3D pattern for Pixelblaze | |
// by Jason Coon | |
export var autoPalette = true; | |
export var secondsPerPalette = 10; | |
export var paletteIndex = 0; | |
export var transition = 0.2; | |
export var bri = 1; | |
export var speed = 1; |
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
// Cube Edges pattern for Pixelblaze | |
// by Jason Coon | |
export var autoPalette = true; | |
export var secondsPerPalette = 10; | |
export var paletteIndex = 0; | |
export var transition = 0.2; | |
export var bri = 1; | |
export function toggleAutoPalette(v) { |
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
export var t1; | |
export function beforeRender(delta) { | |
t1 = time(.25) | |
} | |
export function render3D(index, x, y, z) { | |
h = t1 - hypot3(x, y, z) * .0625; | |
paint(h, 1); | |
} |
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
export var hOffset = 0 | |
export var vOffset = 1 | |
export var hSpeed = 0.01 | |
export var vSpeed = 0.01 | |
export function sliderHSpeed(v) { hSpeed = v } | |
export function sliderVSpeed(v) { vSpeed = v } | |
export function beforeRender(delta) { |
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
// Color Palette Waves 2D pattern | |
// based on ColorWavesWithPalettes by Mark Kriegsman: https://gist.github.com/kriegsman/8281905786e8b2632aeb | |
// modified by Ben Hencke and Jason Coon to run on Pixelblaze | |
var speed = 0.125; | |
var s = (speed * 2) + 0.001; | |
export function sliderSpeed(v) { | |
speed = v; | |
s = (speed * 2) + 0.001; |
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
// Fibonacci Playground pattern for Fibonacci256 & Pixelblaze by Jason Coon | |
// Fibonacci256: https://www.evilgeniuslabs.org/fibonacci256-hdr-pixelblaze | |
// Pixelblaze: https://electromage.com | |
export var increment = 1; | |
export var autoIncrement = false; | |
export var speed = .165; | |
export var smooth = false; | |
export function inputNumberIncrement(v) { |
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
// Beating heart pattern with palettes. The heart shape is formed by a square turned 45 degees to form a "diamond" which is | |
// the base of the heart. Two semi-circles connect to the upper two sides of the "diamond" for the rounded heart | |
// portion. Depending on your resolution, you may want to play with the anti-aliasing distance to improve the | |
// definition and appearance of the heart's outline. | |
// | |
// Debra Ansell (GeekMomProjcts) 8/18/2022 | |
// Modified by Jason Coon to include color palettes | |
// Ratio of the height of the heart to the length of one side of the diamond inside it | |
// length of one side of the diamond is also the diameter of the circle |
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
// Pixelblaze Triple Helix Hourglass | |
// by Jason Coon, Evil Genius Labs: evilgeniuslabs.org | |
// This work is licensed under a Creative Commons (4.0 International License): | |
// Attribution—Noncommercial—Share Alike: https://creativecommons.org/licenses/by-nc-sa/4.0 | |
var pixels = array(pixelCount) | |
export var maxLevel = 0.25 | |
export var friction = 128 |
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
/* DOOM Fire Eye | |
Slightly modified to polar coords by Jason Coon | |
Video demo here: https://twitter.com/jasoncoon_/status/1567672583436247046 | |
Updated 2D Fire effect, with "enhanced" dragon's breath mode. | |
Now with More, Better fire! Version 2 has more dramatic flame, | |
and an improved wind algorithm. | |
The method is inspired by the low-res fire in the prehistoric PSX port of DOOM! |
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
/** | |
* Evil Eye 2D - 9/7/2022 | |
* Jason Coon (Evil Genius Labs) | |
* Video demo: https://twitter.com/jasoncoon_/status/1567671615214731264 | |
* | |
* Slight modification of Blinky Eyes 2D - 6/5/2022 | |
* Debra Ansell (GeekMomProjects) | |
* | |
* Simple code to display 1 blinking eye on an LED matrix. Tested on a Lux Lavalier (40mm Fibonacci64 Micro). | |
* Fine tuning variable values for the best look will likely depend a lot |
NewerOlder