This file contains 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 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])) |
This file contains 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
#![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); | |
} |
This file contains 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 pyxel | |
SIZE = 256 | |
class Mandel: | |
def __init__(self): | |
self.r = [0.0] * SIZE * SIZE | |
self.i = [0.0] * SIZE * SIZE | |
pyxel.init(SIZE, SIZE) |