Skip to content Skip to sidebar Skip to footer
Showing posts with the label 2d

Shifting Rows And Columns In 2d Arrays - Javascript

I have a situation as such: var array = [ [1,2,3], [4,5,6], [7,8,9] ] And I am trying to cre… Read more Shifting Rows And Columns In 2d Arrays - Javascript

How To Do This Coordinate System Operation More Efficiently?

I'm making a 3D game, where the player's back should always be facing the camera and he sho… Read more How To Do This Coordinate System Operation More Efficiently?

Source Code For Javascript Tree That Features In "inventing On Principle" Video

I was quite inspired by Bret Victor's Inventing on Principle video (http://vimeo.com/36579366).… Read more Source Code For Javascript Tree That Features In "inventing On Principle" Video

Flipping An Array Of Points As A Shape Around Its Center Vertically Or Horizontally

I have a web app that receives some array of points and I need to draw them on a canvas. Unfortunat… Read more Flipping An Array Of Points As A Shape Around Its Center Vertically Or Horizontally