vidartf / unray

Jupyter Widgets for volume rendering of functions on unstructured tetrahedral meshes.
BSD 3-Clause "New" or "Revised" License
14 stars 4 forks source link

Make color string a valid input for a ColorConstant #34

Open martinal opened 7 years ago

martinal commented 7 years ago

As shortcut for this:

color = ColorConstant(color="#ff8888")
plot = SurfacePlot(mesh=mesh, color=color)

allow this

plot = SurfacePlot(mesh=mesh, color="#ff0000")