Initial version of the lib

master
LEdoian 3 years ago
commit 206cea79aa

@ -0,0 +1,27 @@
class Pixel:
def __init__(self): ...
def as_tuple(self):
return (self.r, self.g, self.b)
class Picture:
def __init__(self, data);
self.pixels = data
self.w = None
self.h = None
# TODO: convert from format
def show(self): ...
class Interpolator
def interpolate(self, picture, new_h, new_w):
result = [[None for _ in range(new_w)] for _ in range(new_h)]
for x in range(new_w):
for y in range(new_h):
raise NotImplementedError('Tady jsem skončil')
def get_pixel(self, picture, x, y, result, quantum_x, quantum_y):
raise NotImplementedError('You write this :-)')
Loading…
Cancel
Save