blockly > blockRendering > ConstantProvider > getBlockStyleForColour
blockRendering.ConstantProvider.getBlockStyleForColour() yöntemi
Tek bir renk değerine dayalı bir blok stili alın veya oluşturun. Renge dayalı stil için bir ad oluşturun.
İmza:
getBlockStyleForColour(colour: string): {
style: BlockStyle;
name: string;
};
Parametreler
Parametre | Tür | Açıklama |
---|---|---|
renk | dize | #RRGGBB renk dizesi. |
İade et:
{ style: BlockStyle; name: string; }
Stili ve bu stil için otomatik olarak oluşturulan adı içeren bir nesne.