Sun

SUN entity defines properties of the sun.

Subclass of ezdxf.entities.DXFObject
DXF type 'SUN'
Factory function creating a new SUN entity is not supported
class ezdxf.entities.Sun
dxf.version

Current version is 1.

dxf.status

on = 1 or off = 0

dxf.color

AutoCAD Color Index (ACI) value of the sun.

dxf.true_color

true color value of the sun.

dxf.intensity

Intensity value in the range of 0 to 1. (float)

dxf.julian_day

use calendardate() to convert dxf.julian_day to datetime.datetime object.

dxf.time

Day time in seconds past midnight. (int)

dxf.daylight_savings_time
dxf.shadows
0 Sun do not cast shadows
1 Sun do cast shadows
dxf.shadow_type
dxf.shadow_map_size
dxf.shadow_softness