photonmap.Common.Outils

Functions

wavelength2Rgb(→ photonmap.Vec3)

Convert a wavelength between 400 - 800 nm to RGB color

flatten(→ list)

Flattens a list

Module Contents

photonmap.Common.Outils.wavelength2Rgb(w: int) photonmap.Vec3[source]

Convert a wavelength between 400 - 800 nm to RGB color

Parameters

w: int

The wavelength to convert

Returns

RGB: Vec3

A Vec3 structure representing an RGB color.

photonmap.Common.Outils.flatten(lt: list) list[source]

Flattens a list

Parameters

lt: list

a list

Returns

l: list

the flattened list