The Wiki for Tale 4 is in read-only mode and is available for archival and reference purposes only. Please visit the current Tale 11 Wiki in the meantime.

If you have any issues with this Wiki, please post in #wiki-editing on Discord or contact Brad in-game.

User:Inkoaten/Raeli Colors

From A Tale in the Desert
Jump to navigationJump to search

Raeli Colors

Scratchpad area for working out Raeli color progressions.

If you have any ideas or more data for this, please go ahead and put comments here or on the discussion page, or chat to me ingame.

 This is all wrong. The conversion script is mangling S/L values. Fixme.

Hypotheses

  • Convert color to HSV
  • Hue = k1
  • t = burn time / max burn time
  • Saturation = t
  • Value = 1.0 - k2 * t
  • k1, k2 are determined by oven location and resin type?

To Do

Get timing data, and just more data in general (e.g. automate taking a screenshot every 10 seconds over the course of the entire run)

cory0210's data

From Guilds/Akhetaton#Raeli Oven:

Color Raw RGB RGB HSL HSV
White Smoke 241 240 248 0.945 0.941 0.973 247.5 0.016 0.016 247.5 0.032 0.973
Lavender 236 234 245 0.925 0.918 0.961 250.9 0.023 0.022 250.9 0.045 0.961
Gainsboro 220 219 237 0.863 0.859 0.929 243.3 0.039 0.035 243.3 0.076 0.929
Light Grey 207 204 231 0.812 0.800 0.906 246.7 0.062 0.053 246.7 0.117 0.906
Thistle 205 202 231 0.804 0.792 0.906 246.2 0.067 0.057 246.2 0.126 0.906
Light Steel Blue 197 193 228 0.773 0.757 0.894 246.9 0.083 0.069 246.9 0.154 0.894
Medium Purple 160 155 211 0.627 0.608 0.827 245.4 0.153 0.110 245.4 0.265 0.827
Slate Blue 126 119 197 0.494 0.467 0.773 245.4 0.247 0.153 245.4 0.396 0.773
Dark Slate Blue 84 78 178 0.329 0.306 0.698 243.6 0.391 0.196 243.6 0.562 0.698

Color conversion

Horrible Python script to convert RGB to HSL and HSV colorspaces:

#!/usr/bin/env python
import sys
r = int(sys.argv[1])/255.0
g = int(sys.argv[2])/255.0
b = int(sys.argv[3])/255.0
minc = min(r,g,b)
maxc = max(r,g,b)
if maxc == minc: h = 0
elif maxc == r: h = (60 * (g-b)/(maxc-minc) + 360) % 360
elif maxc == g: h = (60 * (b-r)/(maxc-minc) + 120)
elif maxc == b: h = (60 * (r-g)/(maxc-minc) + 240)
l = (maxc-minc) / 2.0
if maxc == minc: hsl_s = 0.0
elif l <= 0.5: hsl_s = (maxc-minc) / (maxc+minc)
else: hsl_s = (maxc-minc) / (2 - (maxc+minc))
if maxc == 0: hsv_s = 0.0
else: hsv_s = (maxc-minc) / maxc
v = maxc
print "Raw: %5d %5d %5d" % (int(sys.argv[1]), int(sys.argv[2]), int(sys.argv[3]))
print "RGB: %5.3f %5.3f %5.3f" % (r,g,b)
print "HSL: %5.1f %5.3f %5.3f" % (h,hsl_s,l)
print "HSV: %5.1f %5.3f %5.3f" % (h,hsv_s,v)