Comment

Comment by virtualSatai

You have a pixel grid of 17 x 106, anything you want to drawn in it can be.

To draw an arbitrary figure do this: Start with the pixel in the lowest left corner, if black put 1 as the first digit of a binary number else put 0, then continue first up then one right, the down. Convert this (1802 digit) binary number to decimal and use it as input for the function and there it is.

parent virtualSatai 11 years ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton