forked from daviddoria/Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 0ec945c
Showing
6,970 changed files
with
648,383 additions
and
0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
|
||
i=2 | ||
echo $i test1 | ||
echo "$i test1" | ||
echo $(($i*2)) test2 | ||
|
||
echo "testing" | ||
echo testing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
if [ "2" = "1" ]; then | ||
echo true! | ||
else | ||
echo false! | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
testVariable=5; #must NOT have spaces around '=' | ||
testVariable2=6; | ||
echo "Variables are ${testVariable}${testVariable2}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
set -x; | ||
doSomething; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
|
||
for i in $*; do | ||
echo $i | ||
done; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
for i in 1 2 3 4 5; do | ||
echo $i.jpg | ||
done; | ||
|
||
for i in `seq 1 5`; do | ||
echo $i.jpg | ||
done; | ||
|
||
for i in {1..5}; do | ||
echo $i.jpg | ||
done; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
if [ "$1" = "hello" ]; then | ||
echo you said hello! | ||
else | ||
echo you DID NOT say hello! | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
echo name of script is $0 | ||
|
||
echo number of arguments is $# | ||
|
||
for i in $*; do | ||
echo $i | ||
done; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
|
||
if [ $# -lt 1 ]; then #-lt is "less than" | ||
echo "You must enter an argument!"; | ||
exit; | ||
fi | ||
|
||
testVariable=$1; #must NOT have spaces around '=' | ||
echo "You input $testVariable" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash | ||
|
||
#call with | ||
#./Parse.sh --prefix=a.txt | ||
|
||
for i in $* | ||
do | ||
case $i in | ||
--files=*) | ||
FILES=`echo $i | sed 's/[-a-zA-Z0-9]*=//'` | ||
;; | ||
--searchpath=*) | ||
SEARCHPATH=`echo $i | sed 's/[-a-zA-Z0-9]*=//'` | ||
;; | ||
--lib=*) | ||
MyLib=`echo $i | sed 's/[-a-zA-Z0-9]*=//'` | ||
;; | ||
--default) | ||
DEFAULT=YES | ||
;; | ||
*) | ||
# unknown option | ||
;; | ||
esac | ||
done | ||
|
||
echo $FILES | ||
echo "File 0:" | ||
echo ${FILES[0]} | ||
|
||
echo $SEARCHPATH | ||
echo $MyLib | ||
echo $DEFAULT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
i=4 | ||
|
||
echo i = ${i} | ||
echo testing --thing='stuff ${i}' | ||
echo testing --thing="'stuff ${i}'" | ||
echo testing --thing="'stuff'" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
echo -n "Enter your name: " #-n is no new line | ||
read -e Name #use readline | ||
|
||
echo $Name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
|
||
testVariable=5; #must NOT have spaces around '=' | ||
echo "Variable is $testVariable" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
for i in 1 2 3 4 5; do | ||
NewNumber=`printf %04d "$i"` | ||
echo $i $NewNumber | ||
done; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
#for i in 1 2 3 4 5; do | ||
# echo $i.jpg | ||
#done; | ||
|
||
convert -delay 20 -loop 0 *.jpg animated.gif # loop 0 means repeat infinitely |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
while : | ||
do | ||
sleep 60 | ||
echo "keep alive" >> /media/portable/keepalive.txt | ||
echo "keep alive" | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
hi | ||
hi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
cmake_minimum_required(VERSION 2.6) | ||
|
||
PROJECT(CompilerFlags) | ||
|
||
find_package(wxWidgets COMPONENTS core base REQUIRED) | ||
include( ${wxWidgets_USE_FILE} ) | ||
|
||
ADD_EXECUTABLE(CompilerFlags CompilerFlags.cxx) | ||
|
||
#works, but not best-practice | ||
#set_target_properties(CompilerFlags PROPERTIES COMPILE_FLAGS "-DUNIX") | ||
|
||
#works fine | ||
#set_target_properties(CompilerFlags PROPERTIES COMPILE_DEFINITIONS "UNIX;DAVID;") | ||
|
||
#also works fine | ||
#set(myvariable "UNIX; DAVID;") | ||
#message("myvariable: " ${myvariable}) | ||
|
||
#best practice | ||
list(APPEND myvariable "UNIX") | ||
list(APPEND myvariable "DAVID") | ||
message("myvariable: ${myvariable}") | ||
message("CMAKE_CXX_FLAGS: ${CMAKE_CXX_FLAGS}") | ||
SET_PROPERTY(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS ${wxWidgets_DEFINITIONS} ) | ||
set_target_properties(CompilerFlags PROPERTIES COMPILE_DEFINITIONS "${myvariable}") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#include <iostream> | ||
|
||
int main() | ||
{ | ||
#ifdef UNIX | ||
std::cout << "UNIX was defined." << std::endl; | ||
#else | ||
std::cout << "UNIX was NOT defined." << std::endl; | ||
#endif | ||
|
||
#ifdef DAVID | ||
std::cout << "DAVID was defined." << std::endl; | ||
#else | ||
std::cout << "DAVID was NOT defined." << std::endl; | ||
#endif | ||
|
||
#if defined(UNIX) || defined(DAVID) | ||
std::cout << "Working." << std::endl; | ||
#else | ||
#error "Broken!" | ||
#endif | ||
|
||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
cmake_minimum_required(VERSION 2.6) | ||
|
||
PROJECT(InstallTest) | ||
|
||
ADD_EXECUTABLE(InstallTest InstallTest.cxx) | ||
|
||
# Install to a hard coded path | ||
#install(TARGETS InstallTest RUNTIME DESTINATION /home/doriad/Desktop/InstallTest) | ||
|
||
# Install to a path specified in ccmake | ||
install(TARGETS InstallTest RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
int main() | ||
{ | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
cmake_minimum_required(VERSION 2.6) | ||
|
||
PROJECT(TestLibrary) | ||
|
||
add_library(TestLibrary TestLibrary.cxx) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
int TestFunction() | ||
{ | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
cmake_minimum_required(VERSION 2.6) | ||
|
||
PROJECT(SetTargetProperties) | ||
|
||
ADD_EXECUTABLE(SetTargetProperties SetTargetProperties.cxx) | ||
set_target_properties(SetTargetProperties PROPERTIES COMPILE_FLAGS "-DUNIX") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
int main() | ||
{ | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
cmake_minimum_required(VERSION 2.6) | ||
|
||
PROJECT(VariableCaching) | ||
|
||
#SET(CMAKE_CXX_FLAGS "Flags1" CACHE STRING "Compiler flags") | ||
SET(CMAKE_CXX_FLAGS "Flags1") | ||
message("Using flags ${CMAKE_CXX_FLAGS}") | ||
ADD_EXECUTABLE(Executable1 VariableCaching.cxx) | ||
|
||
#SET(CMAKE_CXX_FLAGS "Flags2" CACHE STRING "Compiler flags") | ||
SET(CMAKE_CXX_FLAGS "Flags2") | ||
message("Using flags ${CMAKE_CXX_FLAGS}") | ||
ADD_EXECUTABLE(Executable2 VariableCaching.cxx) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
int main() | ||
{ | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
cmake_minimum_required(VERSION 2.6) | ||
|
||
PROJECT(Variables) | ||
|
||
#string variable | ||
#SET(VariableName DefaultValue CACHE VariableType HelpText FORCE) | ||
SET(AStringVariable HelloWorld CACHE STRING "String variable help text" FORCE) | ||
|
||
SET(ABoolVariable OFF CACHE BOOL "Bool varibale help text" FORCE) | ||
|
||
ADD_EXECUTABLE(Variables Variables.cxx) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
int main() | ||
{ | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
using System; | ||
class myClass | ||
{ | ||
static void Main() | ||
{ | ||
Console.WriteLine("Hello World"); | ||
} | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
cmake_minimum_required(VERSION 2.6) | ||
|
||
project(simple) | ||
ENABLE_TESTING() | ||
|
||
add_executable(simple simple.cpp) | ||
add_test(NAME SimpleTest COMMAND simple) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#include <iostream> | ||
|
||
int main (int, char *[]) | ||
{ | ||
|
||
std::cout << "Sample text." << std::endl; | ||
|
||
return 0; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
see c++/src/Doxygen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
#this makes all the images in the current directory as close to 600x600 (360000 area) as possible while preserving the aspect ratio | ||
for i in *.png; do convert $i -resize 360000@ $i; done; | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
#convert 1.jpg -bordercolor blue -border 10 border.jpg | ||
convert 1.jpg -bordercolor blue -border 2x2 border.jpg | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/bin/bash | ||
|
||
#make images same size | ||
#for model in {1..5}; do | ||
# File="${model}.jpg" | ||
# convert $File -resize 100x100\! $File | ||
#done; | ||
|
||
|
||
#concatenate vertically | ||
#convert 1.jpg 2.jpg -append append.jpg | ||
|
||
#concatenate vertically with a border | ||
#convert 1.jpg 2.jpg -border 10 -append append.jpg | ||
|
||
#concatenate vertically with a blue border | ||
#convert 1.jpg 2.jpg -bordercolor blue -border 10 -append append.jpg | ||
|
||
#concatenate horizontally | ||
#convert 1.jpg 2.jpg +append append.jpg | ||
|
||
#concatenate a list of images | ||
#convert [12345].jpg +append append.jpg #works | ||
#convert [1,2,3,4,5].jpg +append append.jpg #works | ||
#convert [1-5].jpg +append append.jpg #works | ||
#convert *.jpg +append append.jpg #works | ||
#convert 00[1-5].jpg +append append.jpg | ||
|
||
|
||
|
||
#add a border | ||
#montage -background blue -geometry +4+4 001.jpg test.jpg | ||
|
||
#add a border and concatentate | ||
#montage -background blue -geometry +4+4 001.jpg 002.jpg test.jpg | ||
|
||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/python | ||
import os, sys | ||
|
||
#RGB | ||
#cmd = "convert -size 200x100 xc:rgb\(255,0,0\) square.png" | ||
|
||
#HSL | ||
#Saturation and lightness are represented as percentages | ||
#100% is full saturation, and 0% is a shade of grey | ||
#0% lightness is black, 100% lightness is white, and 50% lightness is 'normal' | ||
|
||
#hsl(0, 100%, 50%) red | ||
#hsl(120, 100%, 50%) green | ||
#hsl(120, 100%, 25%) light green | ||
#hsl(120, 100%, 75%) dark green | ||
#hsl(120, 50%, 50%) pastel green | ||
|
||
cmd = "convert -size 200x100 xc:hsl\(100,100\%, 50\%\) square.png" | ||
os.system(cmd) | ||
|
||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.