Example #1
0
from Operation import Operation
import random

row = []
for x in range(0, Main.x_resolution):
    column = []
    for y in range(0, Main.y_resolution):
        r = random.randint(0, 255)
        g = random.randint(0, 255)
        b = random.randint(0, 255)
        column.append(Pixel(r, g, b, 255))
    row.append(column)

frame = Frame(row)

i0 = NodeGenerator(frame)
i1 = Operation()
c2 = 0
c3 = 0
i4 = -14
i4 = i1.actALessThanB(c3, c3)
i6 = -5
i7 = i0.constructNodeRectangle(793, 448, 246, 568)
i8 = 36
i8 = i1.actAdd(i6, i7.determineAverageBlue())
i10 = -5
c3 = i1.actRemainder(i7.determineAverageBlue(), i10)
i12 = i0.constructNodeRectangle(611, 250, 416, 0)
i13 = 1
i13 = i1.actDivide(i6, i12.determineAverageGreen())
i15 = -54