Названия цвета SVG (SVG color names)

Материал из Ren'Py Wiki
Перейти к навигации Перейти к поиску

Этот скрипт определяет все названия цветов SVG в соответствии с таблицей цветов, как названные через Solid, используемый в Ren'Py.

init -500:
    image aliceblue = Solid("#f0f8ff")
    image antiquewhite = Solid("#faebd7")
    image aqua = Solid("#00ffff")
    image aquamarine = Solid("#7fffd4")
    image azure = Solid("#f0ffff")
    image beige = Solid("#f5f5dc")
    image bisque = Solid("#ffe4c4")
    image black = Solid("#000000")
    image blanchedalmond = Solid("#ffebcd")
    image blue = Solid("#0000ff")
    image blueviolet = Solid("#8a2be2")
    image brown = Solid("#a52a2a")
    image burlywood = Solid("#deb887")
    image cadetblue = Solid("#5f9ea0")
    image chartreuse = Solid("#7fff00")
    image chocolate = Solid("#d2691e")
    image coral = Solid("#ff7f50")
    image cornflowerblue = Solid("#6495ed")
    image cornsilk = Solid("#fff8dc")
    image crimson = Solid("#dc143c")
    image cyan = Solid("#00ffff")
    image darkblue = Solid("#00008b")
    image darkcyan = Solid("#008b8b")
    image darkgoldenrod = Solid("#b8860b")
    image darkgray = Solid("#a9a9a9")
    image darkgreen = Solid("#006400")
    image darkgrey = Solid("#a9a9a9")
    image darkkhaki = Solid("#bdb76b")
    image darkmagenta = Solid("#8b008b")
    image darkolivegreen = Solid("#556b2f")
    image darkorange = Solid("#ff8c00")
    image darkorchid = Solid("#9932cc")
    image darkred = Solid("#8b0000")
    image darksalmon = Solid("#e9967a")
    image darkseagreen = Solid("#8fbc8f")
    image darkslateblue = Solid("#483d8b")
    image darkslategray = Solid("#2f4f4f")
    image darkslategrey = Solid("#2f4f4f")
    image darkturquoise = Solid("#00ced1")
    image darkviolet = Solid("#9400d3")
    image deeppink = Solid("#ff1493")
    image deepskyblue = Solid("#00bfff")
    image dimgray = Solid("#696969")
    image dimgrey = Solid("#696969")
    image dodgerblue = Solid("#1e90ff")
    image firebrick = Solid("#b22222")
    image floralwhite = Solid("#fffaf0")
    image forestgreen = Solid("#228b22")
    image fuchsia = Solid("#ff00ff")
    image gainsboro = Solid("#dcdcdc")
    image ghostwhite = Solid("#f8f8ff")
    image gold = Solid("#ffd700")
    image goldenrod = Solid("#daa520")
    image gray = Solid("#808080")
    image green = Solid("#008000")
    image greenyellow = Solid("#adff2f")
    image grey = Solid("#808080")
    image honeydew = Solid("#f0fff0")
    image hotpink = Solid("#ff69b4")
    image indianred = Solid("#cd5c5c")
    image indigo = Solid("#4b0082")
    image ivory = Solid("#fffff0")
    image khaki = Solid("#f0e68c")
    image lavender = Solid("#e6e6fa")
    image lavenderblush = Solid("#fff0f5")
    image lawngreen = Solid("#7cfc00")
    image lemonchiffon = Solid("#fffacd")
    image lightblue = Solid("#add8e6")
    image lightcoral = Solid("#f08080")
    image lightcyan = Solid("#e0ffff")
    image lightgoldenrodyellow = Solid("#fafad2")
    image lightgray = Solid("#d3d3d3")
    image lightgreen = Solid("#90ee90")
    image lightgrey = Solid("#d3d3d3")
    image lightpink = Solid("#ffb6c1")
    image lightsalmon = Solid("#ffa07a")
    image lightseagreen = Solid("#20b2aa")
    image lightskyblue = Solid("#87cefa")
    image lightslategray = Solid("#778899")
    image lightslategrey = Solid("#778899")
    image lightsteelblue = Solid("#b0c4de")
    image lightyellow = Solid("#ffffe0")
    image lime = Solid("#00ff00")
    image limegreen = Solid("#32cd32")
    image linen = Solid("#faf0e6")
    image magenta = Solid("#ff00ff")
    image maroon = Solid("#800000")
    image mediumaquamarine = Solid("#66cdaa")
    image mediumblue = Solid("#0000cd")
    image mediumorchid = Solid("#ba55d3")
    image mediumpurple = Solid("#9370db")
    image mediumseagreen = Solid("#3cb371")
    image mediumslateblue = Solid("#7b68ee")
    image mediumspringgreen = Solid("#00fa9a")
    image mediumturquoise = Solid("#48d1cc")
    image mediumvioletred = Solid("#c71585")
    image midnightblue = Solid("#191970")
    image mintcream = Solid("#f5fffa")
    image mistyrose = Solid("#ffe4e1")
    image moccasin = Solid("#ffe4b5")
    image navajowhite = Solid("#ffdead")
    image navy = Solid("#000080")
    image oldlace = Solid("#fdf5e6")
    image olive = Solid("#808000")
    image olivedrab = Solid("#6b8e23")
    image orange = Solid("#ffa500")
    image orangered = Solid("#ff4500")
    image orchid = Solid("#da70d6")
    image palegoldenrod = Solid("#eee8aa")
    image palegreen = Solid("#98fb98")
    image paleturquoise = Solid("#afeeee")
    image palevioletred = Solid("#db7093")
    image papayawhip = Solid("#ffefd5")
    image peachpuff = Solid("#ffdab9")
    image peru = Solid("#cd853f")
    image pink = Solid("#ffc0cb")
    image plum = Solid("#dda0dd")
    image powderblue = Solid("#b0e0e6")
    image purple = Solid("#800080")
    image red = Solid("#ff0000")
    image rosybrown = Solid("#bc8f8f")
    image royalblue = Solid("#4169e1")
    image saddlebrown = Solid("#8b4513")
    image salmon = Solid("#fa8072")
    image sandybrown = Solid("#f4a460")
    image seagreen = Solid("#2e8b57")
    image seashell = Solid("#fff5ee")
    image sienna = Solid("#a0522d")
    image silver = Solid("#c0c0c0")
    image skyblue = Solid("#87ceeb")
    image slateblue = Solid("#6a5acd")
    image slategray = Solid("#708090")
    image slategrey = Solid("#708090")
    image snow = Solid("#fffafa")
    image springgreen = Solid("#00ff7f")
    image steelblue = Solid("#4682b4")
    image tan = Solid("#d2b48c")
    image teal = Solid("#008080")
    image thistle = Solid("#d8bfd8")
    image tomato = Solid("#ff6347")
    image turquoise = Solid("#40e0d0")
    image violet = Solid("#ee82ee")
    image wheat = Solid("#f5deb3")
    image white = Solid("#ffffff")
    image whitesmoke = Solid("#f5f5f5")
    image yellow = Solid("#ffff00")
    image yellowgreen = Solid("#9acd32")

Поместить вышеуказанный init блок либо в существующий скрипт, или в отдельный rpy файл. Теперь вы можете использовать show lightgoldenrodyellow или scene mediumspringgreen и т.п. - если есть желание.

Источник[править | править код]

Статья "SVG color names" на английском языке


На главную страницу Книга рецептов Энциклопедии Ren'Py Книга рецептов Ren'Py Вернуться к началу статьи