Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
11
Task/Colour-bars-Display/Julia/colour-bars-display.julia
Normal file
11
Task/Colour-bars-Display/Julia/colour-bars-display.julia
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
using Images
|
||||
|
||||
colors = [colorant"black", colorant"red", colorant"green", colorant"darkblue",
|
||||
colorant"purple", colorant"blue", colorant"yellow", colorant"white"]
|
||||
wcol = 60 # width of each color bar
|
||||
h, w = 150, wcol * length(colors) + 1
|
||||
img = Matrix{RGB{N0f8}}(h, w);
|
||||
for (j, col) in zip(1:wcol:w, colors)
|
||||
img[:, j:j+wcol] = col
|
||||
end
|
||||
save("data/colourbars.jpg", img)
|
||||
Loading…
Add table
Add a link
Reference in a new issue