MCPcopy Create free account
hub / github.com/christophhart/HISE / getColour

Method getColour

hi_scripting/scripting/scriptnode/api/NodeBase.cpp:636–655  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

634}
635
636Colour NodeBase::getColour() const
637{
638 auto value = getValueTree()[PropertyIds::NodeColour];
639 auto colour = PropertyHelpers::getColourFromVar(value);
640
641 if(getRootNetwork()->getRootNode() == this)
642 {
643 return dynamic_cast<const Processor*>(getScriptProcessor())->getColour();
644 }
645
646 if(auto cont = dynamic_cast<const NodeContainer*>(this))
647 {
648 auto cc = cont->getContainerColour();
649
650 if(!cc.isTransparent())
651 return cc;
652 }
653
654 return colour;
655}
656
657var NodeBase::get(var id)
658{

Callers 4

SelectorMethod · 0.45
paintMethod · 0.45
getOutlineColourMethod · 0.45
paintOverChildrenMethod · 0.45

Calls 3

getRootNodeMethod · 0.80
getContainerColourMethod · 0.45
isTransparentMethod · 0.45

Tested by

no test coverage detected