Scratch for Java

Sprite::isColorTouchingColor()

Whether a colour of the sprite touches a colour on the stage, like Scratch's "color is touching color".

Examples

View on GitHub

Syntax

Java

.isColorTouchingColor(mine, color)

Scratch

<color [#ff0000] is touching [#00ff00]?>

Parameters

Name Data Type Description
mine Color a colour of the sprite
color Color the colour to look for underneath

Return

boolean

isColorTouchingColor()

Create Shareable URL

Select Sections