import numpy as np

from pipeline.sprite.Sprite import Sprite


class RandomSquare(Sprite):

    def __init__(self, dims):
        self.dims = dims

    def draw(self, frame, pos, t):
        x, y = pos
        w, h = self.dims

        frame[
            int(y):int(y)+h,
            int(x):int(x)+w,
        ] = np.random.randint(0, 255, size=(h, w, 3))

a2a419eb07fba218a4bf96dffb67211143bbd26b
<mask token>


class RandomSquare(Sprite):
    <mask token>
    <mask token>

<mask token>


class RandomSquare(Sprite):

    def __init__(self, dims):
        self.dims = dims
    <mask token>

<mask token>


class RandomSquare(Sprite):

    def __init__(self, dims):
        self.dims = dims

    def draw(self, frame, pos, t):
        x, y = pos
        w, h = self.dims
        frame[int(y):int(y) + h, int(x):int(x) + w] = np.random.randint(0, 
            255, size=(h, w, 3))

import numpy as np
from pipeline.sprite.Sprite import Sprite


class RandomSquare(Sprite):

    def __init__(self, dims):
        self.dims = dims

    def draw(self, frame, pos, t):
        x, y = pos
        w, h = self.dims
        frame[int(y):int(y) + h, int(x):int(x) + w] = np.random.randint(0, 
            255, size=(h, w, 3))

import numpy as np

from pipeline.sprite.Sprite import Sprite


class RandomSquare(Sprite):

    def __init__(self, dims):
        self.dims = dims

    def draw(self, frame, pos, t):
        x, y = pos
        w, h = self.dims

        frame[
            int(y):int(y)+h,
            int(x):int(x)+w,
        ] = np.random.randint(0, 255, size=(h, w, 3))
