29 if name ==
"gray" or name ==
"grayscale":
30 stops = [0.00, 0.34, 0.61, 0.84, 1.00]
31 red = [1.00, 0.84, 0.61, 0.34, 0.00]
32 green = [1.00, 0.84, 0.61, 0.34, 0.00]
33 blue = [1.00, 0.84, 0.61, 0.34, 0.00]
34 elif name ==
"Sophie":
36 stops = [0.00, 0.50, 0.75, 1.00]
37 red = [1.00, 0.20, 0.00, 0.20]
38 green = [0.00, 0.20, 1.00, 1.00]
39 blue = [1.00, 1.00, 1.00, 0.20]
40 elif name ==
"SophieInverse":
42 stops = [0.00, 0.50, 0.75, 1.00]
43 red = [0.20, 0.00, 0.20, 1.00]
44 green = [1.00, 1.00, 0.20, 0.00]
45 blue = [0.20, 1.00, 1.00, 1.00]
46 elif name ==
"Steven":
48 stops = [0.00, 0.50, 1.00]
49 red = [0.70, 0.00, 0.20]
50 green = [0.00, 0.50, 1.00]
51 blue = [0.00, 0.70, 0.20]
52 elif name ==
"StevenInverse":
54 stops = [0.00, 0.50, 1.00]
55 red = [0.20, 0.00, 0.70]
56 green = [1.00, 0.50, 0.00]
57 blue = [0.20, 0.70, 0.00]
58 elif name ==
"StevenCentred":
60 stops = [0.00, 0.15, 0.50, 0.85, 1.00]
61 red = [0.00, 0.00, 0.20, 0.70, 1.00]
62 green = [0.00, 0.50, 1.00, 0.00, 0.00]
63 blue = [1.00, 0.70, 0.20, 0.00, 0.00]
66 stops = [0.00, 0.34, 0.61, 0.84, 1.00]
67 red = [0.00, 0.00, 0.87, 1.00, 0.51]
68 green = [0.00, 0.81, 1.00, 0.20, 0.00]
69 blue = [0.51, 1.00, 0.12, 0.00, 0.00]
77 TColor.CreateGradientColorTable(npoints, s, r, g, b, ncontours)
78 gStyle.SetNumberContours(ncontours)