Scratch for Java

Color::toString()

The colour written out, so that printing one says something.

Without this a System.out.println(mySprite.getTint()) printed org.openpatch.scratch.Color@35432107, which tells you nothing about the colour and is the first thing anyone tries when a tint looks wrong.

Examples

View on GitHub

Syntax

Java

.toString()

Return

String

toString()

Create Shareable URL

Select Sections