“You Paint It” plaster kits for children (and adults in memory care) alvin August 7, 2018 - 11:16am

For an adult with memory problems (dementia) we’re trying these “You Paint It” kits. The one shown is a collection of forest animals, and they also have dogs and cats, some sort of horse-like characters, and emoji figurines.

How to create an Android Color from a hexadecimal/HTML string (#fff)

Android FAQ: How can I create a Color from a hexadecimal color string in Android?

The Android Color.parseColor method

Solution: Use the Android Color.parseColor method, like this:

int color = Color.parseColor("#519c3f");

I just used it like this in my code, where I directly set the Paint color:

How to draw a rectangle in Android (using onDraw method of View)

Android FAQ: How do I draw a rectangle in Android?

To draw a rectangle in Android you’ll need to create your own View, i.e., a class that extends the Android View class. For example, this CustomView shows how to extend a View and then use the Rect and Paint classes along with the onDraw method to draw a rectangle:

Mercedes concept car's paint harvest wind and solar energy alvin November 7, 2014 - 8:53am

As the ExtremeTech article states, “The curvy masterpiece, called the Vision G-Code, is covered in special multi-voltaic paint that can generate fuel from both solar and wind energy.”

Scala/Java 2D: How to draw lines and arcs

This code may not make much sense without seeing the end result, but ... the following source code shows how to draw lines and arcs in Scala and Java: