mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-24 20:22:33 -06:00
10 lines
230 B
Python
10 lines
230 B
Python
|
from panda3d.core import LVector4f
|
||
|
|
||
|
def dgiExtractString8(dgi):
|
||
|
return dgi.extractBytes(dgi.getUint8())
|
||
|
|
||
|
def dgiExtractColor(dgi):
|
||
|
a, b, c, d = (dgi.getUint8() / 255.0 for _ in xrange(4))
|
||
|
return LVector4f(a, b, c, d)
|
||
|
|