The pencil that changes color in the warm water has a yellow coat of paint which is covered with a paint contining chameleon dye. This dye becomes transparent when warm, thus the yellow color of the pencil is visible.
{}