honeybee_plus.radiance.material.light module

Radiance Light Material.

http://radsite.lbl.gov/radiance/refer/ray.html#Light

class honeybee_plus.radiance.material.light.Light(name, red=0.0, green=0.0, blue=0.0, modifier='void')[source]

Bases: honeybee_plus.radiance.material.materialbase.RadianceMaterial

blue = None

A positive value for the Blue channel of the light

classmethod by_single_reflect_value(name, rgb=0, modifier='void')[source]

Create light material with single value.

name

Material name as a string. Do not use white space and special character.

rgb

Input for red, green and blue. The value should be between 0 and 1 (Default: 0).

modifier

Material modifier (Default: “void”).

Usage:

sample_light = Light.by_single_reflect_value(“sample_light”, 1) print(sample_light)

classmethod from_json(rec_json)[source]

Make radiance material from json {

“name”: “”, // Material Name “red”: float, // A positive value for the Red channel of the glow “green”: float, // A positive value for the Green channel of the glow “blue”: float, // A positive value for the Blue channel of the glow “radius”: float // Maximum radius for shadow testing

}

classmethod from_string(material_string, modifier=None)[source]

Create a Radiance material from a string.

If the material has a modifier the modifier material should also be partof the string or should be provided using modifier argument.

green = None

A positive value for the Green channel of the light

red = None

A positive value for the Red channel of the light

to_json()[source]

Translate radiance material to json {

“modifier”: modifier, “type”: “light”, // Material type “name”: “”, // Material Name “red”: float, // A positive value for the Red channel of the glow “green”: float, // A positive value for the Green channel of the glow “blue”: float // A positive value for the Blue channel of the glow

}