MCPcopy Create free account
hub / github.com/DFHack/dfhack / getStandartColor

Function getStandartColor

plugins/rendermax/renderer_light.cpp:382–387  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

380 ocupancy[tileId]*=(c.pow(thickness));
381}
382rgbf getStandartColor(int colorId)
383{
384 return rgbf(df::global::enabler->ccolor[colorId][0]/255.0f,
385 df::global::enabler->ccolor[colorId][1]/255.0f,
386 df::global::enabler->ccolor[colorId][2]/255.0f);
387}
388int getPlantNumber(const std::string& id)
389{
390 std::vector<df::plant_raw*>& vec=df::plant_raw::get_vector();

Callers

nothing calls this directly

Calls 1

rgbfClass · 0.85

Tested by

no test coverage detected