カラーリストの出力

SAS忘備録の「カラー名の取得」がとても便利

http://sas-boubi.blogspot.jp/2017/01/blog-post.html

ただ、カラー名だとピンとこないので、ちょっと一手間加えてみる。
以下のコードを実行すれば、その環境で設定されてるSASカラー名一覧が色見本ででるはず。
多分。

filename tempf temp;
proc registry list export= tempf
 usesashelp
 startat='COLORNAMES' ;
 run;

data test;
 infile tempf truncover;
 input text $ 1-100 ;
 color=compress(scan(text,1,"="),'"');
 hex=scan(text,2,"=");
 if _N_>=8;
 dummy="";
 keep color hex dummy;
 run;

proc report data=test nowd;
 column color hex dummy;
 compute dummy;
call define(_col_,'style','style={background='||color||'}');
 endcomp;
run;

以下は、2017/1/22時点のSAS on demandで実行した結果。

colorhexdummy
AliceBluehex: F0,F8,FF 
AntiqueWhitehex: FA,EB,D7 
Aquahex: 00,FF,FF 
Aquamarinehex: 7F,FD,D4 
Azurehex: F0,FF,FF 
Beigehex: F5,F5,DC 
Bisquehex: FF,E4,C4 
Blackhex: 00,00,00 
BlanchedAlmondhex: FF,EB,CD 
Bluehex: 00,00,FF 
BlueViolethex: 8A,2B,E2 
BRhex: A5,2A,2A 
Brownhex: A5,2A,2A 
Burlywoodhex: DE,B8,87 
CadetBluehex: 5F,9E,A0 
Chartreusehex: 7F,FF,00 
Chocolatehex: D2,69,1E 
Coralhex: FF,7F,50 
CornFlowerBluehex: 64,95,ED 
Cornsilkhex: FF,F8,DC 
Crimsonhex: DC,14,3C 
Cyanhex: 00,FF,FF 
DarkBluehex: 00,00,8B 
DarkCyanhex: 00,8B,8B 
DarkGoldenrodhex: B8,86,0B 
DarkGrayhex: A9,A9,A9 
DarkGreenhex: 00,64,00 
DarkGreyhex: A9,A9,A9 
DarkKhakihex: BD,B7,6B 
DarkMagentahex: 8B,00,8B 
DarkOliveGreenhex: 55,6B,2F 
DarkOrangehex: FF,8C,00 
DarkOrchidhex: 99,32,CC 
DarkRedhex: 8B,00,00 
DarkSalmonhex: E9,96,7A 
DarkSeaGreenhex: 8F,BC,8F 
DarkSlateBluehex: 48,3D,8B 
DarkSlateGrayhex: 2F,4F,4F 
DarkSlateGreyhex: 2F,2F,2F 
DarkTurquoisehex: 00,CE,D1 
DarkViolethex: 94,00,D3 
DeepPinkhex: FF,14,93 
DeepSkyBluehex: 00,BF,FF 
DimGrayhex: 69,69,69 
DimGreyhex: 69,69,69 
DodgerBluehex: 1E,90,FF 
FireBrickhex: B2,22,22 
FloralWhitehex: FF,FA,F0 
ForestGreenhex: 22,8B,22 
Fuchsiahex: FF,00,FF 
Ghex: 00,80,00 
Gainsborohex: DC,DC,DC 
GhostWhitehex: F8,F8,FF 
Goldhex: FF,D7,00 
Goldenrodhex: DA,A5,20 
Grayhex: 80,80,80 
Greenhex: 00,80,00 
GreenYellowhex: AD,FF,2F 
Greyhex: 80,80,80 
Honeydewhex: F0,FF,F0 
HotPinkhex: FF,69,B4 
IndianRedhex: CD,5C,5C 
Indigohex: 4B,00,82 
Ivoryhex: FF,FF,F0 
Khakihex: F0,E6,8C 
Lavenderhex: E6,E6,FA 
LavenderBlushhex: FF,F0,F5 
LawnGreenhex: 7C,FC,00 
LemonChiffonhex: FF,FA,CD 
LightBluehex: AD,D8,E6 
LightCoralhex: F0,80,80 
LightCyanhex: E0,FF,FF 
LightGoldenrodYellowhex: FA,FA,D2 
lightGrayhex: D3,D3,D3 
LightGreenhex: 90,EE,90 
LightGreyhex: D3,D3,D3 
LightPinkhex: FF,B6,C1 
LightSalmonhex: FF,A0,7A 
LightSeaGreenhex: 20,B2,AA 
LightSkyBluehex: 87,CE,FA 
LightSlateGrayhex: 77,88,99 
LightSlateGreyhex: 77,88,99 
LightSteelBluehex: B0,C4,DE 
LightYellowhex: FF,FF,E0 
Limehex: 00,FF,00 
LimeGreenhex: 32,CD,32 
Linenhex: FA,F0,E6 
Magentahex: FF,00,FF 
Maroonhex: 80,00,00 
MediumAquamarinehex: 66,CD,AA 
MediumBluehex: 00,00,CD 
MediumOrchidhex: BA,55,D3 
MediumPurplehex: 93,70,DB 
MediumSeaGreenhex: 3C,B3,71 
MediumSlateBluehex: 7B,68,EE 
MediumSpringGreenhex: 00,FA,9A 
MediumTurquoisehex: 48,D1,CC 
MediumVioletRedhex: C7,15,85 
MidnightBluehex: 19,19,70 
MintCreamhex: F5,FF,FA 
MistyRosehex: FF,E4,E1 
Moccasinhex: FF,E4,B5 
NavajoWhitehex: FF,DE,AD 
Navyhex: 00,00,80 
Ohex: FF,A5,00 
Oldlacehex: FD,F5,E6 
Olivehex: 80,80,00 
OliveDrabhex: 6B,8E,23 
Orangehex: FF,A5,00 
OrangeRedhex: FF,45,00 
Orchidhex: DA,70,D6 
Phex: 80,00,80 
PaleGoldenrodhex: EE,E8,AA 
PaleGreenhex: 98,FB,98 
PaleTurquoisehex: AF,EE,EE 
PaleVioletRedhex: DB,70,93 
PapayaWhiphex: FF,EF,D5 
Peachpuffhex: FF,DA,B9 
Peruhex: CD,85,3F 
Pinkhex: FF,C0,CB 
Plumhex: DD,A0,DD 
PowderBluehex: B0,E0,E6 
Purplehex: 80,00,80 
Redhex: FF,00,00 
RosyBrownhex: BC,8F,8F 
RoyalBluehex: 41,69,E1 
SaddleBrownhex: 8B,45,13 
Salmonhex: FA,80,72 
SandyBrownhex: F4,A4,60 
SeaGreenhex: 2E,8B,57 
Seashellhex: FF,F5,EE 
Siennahex: A0,52,2D 
Silverhex: C0,C0,C0 
SkyBluehex: 87,CE,EB 
SlateBluehex: 6A,5A,CD 
SlateGrayhex: 70,80,90 
SlateGreyhex: 70,80,90 
Snowhex: FF,FA,FA 
SpringGreenhex: 00,FF,7F 
SteelBluehex: 46,82,B4 
Tanhex: D2,B4,8C 
Tealhex: 00,80,80 
Thistlehex: D8,BF,D8 
Tomatohex: FF,63,47 
Turquoisehex: 40,E0,D0 
Violethex: EE,82,EE 
Wheathex: F5,DE,B3 
Whitehex: FF,FF,FF 
WhiteSmokehex: F5,F5,F5 
Yellowhex: FF,FF,00 
YellowGreenhex: 9A,CD,32 

0 件のコメント:

コメントを投稿