June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 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