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
| import p5 from "p5"; | |
| export function bunnySketch(p: p5) { | |
| const hexSize = 28; | |
| const hexWidth = 2 * hexSize; | |
| const hexHeight = Math.sqrt(3) * hexSize; | |
| const horizontalSpacing = (hexWidth * 3) / 4; | |
| const verticalSpcaing = hexHeight / 2; | |
| let numRows = Math.ceil(p.windowHeight / verticalSpcaing) + 1; | |
| let numCols = Math.ceil(p.windowWidth / horizontalSpacing) + 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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <stdint.h> | |
| #include "tagStandard52h13.c" | |
| #define NUM_CODES 48714 | |
| int main(int argc, char *argv[]) { | |
| if (argc != 2) { |
OlderNewer