How do you set pen color to hex code?

I'm working on a project that uses the pen to graph basic linear functions, and I would like to make each function have its own color. I want to make a list of the hex codes of each block category's color. I know how to get a hex code, but I don't know how to set the pen color to it. Can anyone help?

EDIT: For others who wanted the solution, the one that's listed only applies to RGB, not hex codes.

If you really want to use hex digits, load the Colors and Crayons library.

Thanks!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.