Skip to content

Commit 2745b0b

Browse files
committed
Modified
1 parent 752f433 commit 2745b0b

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

Turtle/image.jpg

74.5 KB
Loading

Turtle/main.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import colorgram
2+
3+
rgb_colors = []
4+
colors = colorgram.extract('image.jpg', 30)
5+
for color in colors:
6+
r = color.rgb.r
7+
g = color.rgb.g
8+
b = color.rgb.b
9+
new_color = (r, g, b)
10+
rgb_colors.append(new_color)
11+
print(rgb_colors)

0 commit comments

Comments
 (0)