Skip to content

Instantly share code, notes, and snippets.

View origedit's full-sized avatar

origedit

View GitHub Profile
@origedit
origedit / kvet.4
Last active February 2, 2025 09:40
a drawing program for the terminal in gForth.
: legend
." Escape or Q to quit" cr
." Z to paint" cr
." L to load from a file" cr
." S to save to a file" cr
." P to see the text" cr
." R to enter the text" cr
." B to see in braille" cr
." Delete to clear" cr ;
@origedit
origedit / mandelbrot.bas
Last active September 22, 2024 13:36
the mandelbrot set diagram in ECMA-55 Minimal Basic
011 REM MANDELBROT SET
012 REM BY ORIGEDIT
013 REM 22.09.2024
014 REM
015 REM F = Z^2 + C
016 REM
017 REM VARIABLES
018 REM H1, H2 - START AND END X
019 REM V1, V2 - START AND END Y
020 REM S - STEP FOR X1 AND Y1
@origedit
origedit / voronoi.p5.js
Last active September 21, 2024 11:42
voronoi diagram in p5.js
let spread=50
let dots={}
const palette=[
"#583725",
"#b4785e",
"#f06128",
"#f8d81d",
"#e6ff8a",
"#92d425",
@origedit
origedit / game-of-life.c
Last active September 14, 2024 12:41
Conway's game of life in ansi c
#include <stdlib.h>
#include <stdio.h>
size_t width, height;
char *grid1, *grid2, *oldg, *newg;
unsigned seed;
void shuffle()
{
size_t i, n;