MCPcopy Create free account
hub / github.com/ActiveState/code / main

Function main

recipes/Python/577674_Bitmap_Maker/recipe-577674.py:1–8  ·  view source on GitHub ↗
(width, height, colors)

Source from the content-addressed store, hash-verified

1def main(width, height, colors):
2 size = height * width
3 array = [0] * size
4 create_image(array, width)
5 add_one(array, colors)
6 while sum(array) != 0:
7 create_image(array, width)
8 add_one(array, colors)
9
10def add_one(array, colors):
11 for index, digit in enumerate(array):

Callers 1

recipe-577674.pyFile · 0.70

Calls 3

create_imageFunction · 0.85
add_oneFunction · 0.85
sumFunction · 0.50

Tested by

no test coverage detected