MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / materialParticleColor

Method materialParticleColor

source/game/StarMaterialDatabase.cpp:483–487  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

481}
482
483Color MaterialDatabase::materialParticleColor(MaterialId materialId, MaterialHue hueShift) const {
484 auto color = getMaterialInfo(materialId)->particleColor;
485 color.setHue(pfmod(color.hue() + materialHueToDegrees(hueShift) / 360.0f, 1.0f));
486 return color;
487}
488
489bool MaterialDatabase::isTilledMod(ModId modId) const {
490 if (!isRealMod(modId))

Callers 2

sparkDamagedBlocksMethod · 0.80
sparkBlockMethod · 0.80

Calls 4

pfmodFunction · 0.85
materialHueToDegreesFunction · 0.85
setHueMethod · 0.80
hueMethod · 0.80

Tested by

no test coverage detected