Read Comma-Separated Web Color Data

images/Data/DataRead.png

In the next sketch, we’ll work with hexadecimal values of web colors and overlay them with their official name from the HTML web specification. Our data source contains comma (“,”) separated values (CSV), which we read from the file stored in the data directory of our sketch. The CSV file contains sixteen rows, each containing two values separated by a comma. The first value contains a String that is one of the named colors in the W3C’s HTML color specification.[224] The second value contains a text String that represents the hexadecimal value (or “hex value,” for short) of that named color. When we juxtapose ...

Get Rapid Android Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.