Skip to content

Instantly share code, notes, and snippets.

import cv2
from math import cos,pi
import numpy as np
img=cv2.imread("taberungo.png")
img=cv2.resize(img,None,fx=.5,fy=.5)
while True:
for i in range(360):
width=cos(i/(pi*2))*img.shape[1]
resized=cv2.resize(img,(int(max(abs(width),1)),img.shape[0]))
@White-Green
White-Green / main.rs
Created November 30, 2019 08:13
brainfuck in rust
#![recursion_limit="256"]
macro_rules! bf {
($a:tt) => {
{
const SIZE:usize=32768;
let mut memory=[0u8;SIZE];
let mut ptr:usize=0;
bf!(SIZE,memory,ptr,$a);
}
import pyxel
SIZE = 256
class Mandel:
def __init__(self):
self.r = [0.0] * SIZE * SIZE
self.i = [0.0] * SIZE * SIZE
pyxel.init(SIZE, SIZE)