image to pixel art converter
A Pen by Gregor Adams on CodePen.
// convert 0..255 R,G,B values to binary string | |
RGBToBin = function(r,g,b){ | |
var bin = r << 16 | g << 8 | b; | |
return (function(h){ | |
return new Array(25-h.length).join("0")+h | |
})(bin.toString(2)) | |
} | |
// convert 0..255 R,G,B values to a hexidecimal color string | |
RGBToHex = function(r,g,b){ |
image to pixel art converter
A Pen by Gregor Adams on CodePen.
Second (faster) version of the mandelbrot algorithm in SCSS
A Pen by Gregor Adams on CodePen.
Chrome only !!! a Rubik's Cube made in HTML, JavaScript and CSS.
Drag to play
Now works in Firefox!!!!
A Pen by Gregor Adams on CodePen.
input.retrigger(type="radio" name="rerun" id="retrigger--1") | |
input.retrigger(type="radio" name="rerun" id="retrigger--2" checked) | |
.buttons | |
label.button(for="retrigger--1" class="button--1") PLAY AGAIN | |
label.button(for="retrigger--2" class="button--2") PLAY AGAIN | |
.logo | |
span N | |
span E | |
span T |
watching the new daredevil series on netflix led me to doing this ;)
webkit only (requires -webkit-background-clip
)
A Pen by Gregor Adams on CodePen.
Welcome to the Bug | Welcome to the machine - Pink Floyd | |
A Bug with no name | A horse with no name - America | |
No Bug no cry | No woman no cry - Bob Marley | |
Bug im Freibad | Tod im Freibad - WIZO | |
99 Bugs | 99 Luftballons - Nena | |
Brown eyed Bug | Brown eyed girl - Van Morrison | |
Bug on | Dream on - Aerosmith | |
In the Bug tonight | in the air tonight - Phil Collins | |
Wonderbug | Wonderwall - Oasis | |
Bug Patrol | Snow Patrol - Chasing Cars |
Inspired by:
Thank you for my 888 follower count.
I promised to make a dedicated pen for every 100 followers. I started this idea a long time ago and never finished it. I continued a few weeks ago and had a first prototype. Due to the crappy JS timing issues I had to do a few hacks but was able to get some fun demo going.
I then decided to write this from scratch with React.js since my first implementation had some limitations. A few tweets [...] and somebody suggested Tone.js to me. I took a look at it and was overwhelmed by the API this Library offers. I played around with it a little and here's the thing. LOOK AT AND USE THIS LIBRARY IT IS F*****G AMAZING.
I think this is the easiest to understand library I have used so far and while I only touched about