March 2014 update
This commit is contained in:
parent
09687c4926
commit
a25938f123
1846 changed files with 21876 additions and 5203 deletions
17
Task/Colour-bars-Display/PHP/colour-bars-display-2.php
Normal file
17
Task/Colour-bars-Display/PHP/colour-bars-display-2.php
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
$colors = array(
|
||||
"000000", // black
|
||||
"FF0000", // red
|
||||
"00FF00", // green
|
||||
"0000FF", // blue
|
||||
"FF00FF", // magenta
|
||||
"00FFFF", // cyan
|
||||
"FFFF00", // yellow
|
||||
"FFFFFF", // white
|
||||
);
|
||||
|
||||
echo '<table style="border: 1px solid black; border-spacing: 0;"><tr>';
|
||||
foreach ($colors as $color) {
|
||||
echo '<td style="background-color: #'.$color.'; height: 100px; width: 20px;"></td>';
|
||||
}
|
||||
echo '</tr></table>';
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
my $HOR = 1280;
|
||||
my $VERT = 720;
|
||||
|
||||
my @colors = map -> $r, $g, $b { Buf.new: ($r, $g, $b) xx $HOR div 8 },
|
||||
my @colors = map -> $r, $g, $b { Buf.new: |(($r, $g, $b) xx $HOR div 8) },
|
||||
0, 0, 0,
|
||||
255, 0, 0,
|
||||
0,255, 0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue