fixed colour packing order

This commit is contained in:
SleepKiller 2020-02-04 14:28:34 +13:00
parent 2010dd21b2
commit 47fa855b78
1 changed files with 2 additions and 2 deletions

View File

@ -23,8 +23,8 @@ def min_vec(l: Vector, r: Vector) -> Vector:
def pack_color(color) -> int:
packed = 0
packed |= (int(color[0] * 255.0 + 0.5) << 8)
packed |= (int(color[1] * 255.0 + 0.5) << 16)
packed |= (int(color[0] * 255.0 + 0.5) << 16)
packed |= (int(color[1] * 255.0 + 0.5) << 8)
packed |= (int(color[2] * 255.0 + 0.5))
packed |= (int(color[3] * 255.0 + 0.5) << 24)