Shapes Background #164
|
@ -271,7 +271,7 @@ function getRandomColour(): "blue" | "teal" {
|
|||
}
|
||||
|
||||
function getRandomOpacity(colour: "blue" | "teal"): number {
|
||||
if (colour == "blue") {
|
||||
if (colour === "blue") {
|
||||
return Math.random() < 0.8 ? 20 : 25;
|
||||
} else {
|
||||
return Math.random() < 0.8 ? 25 : 30;
|
||||
|
|
Loading…
Reference in New Issue