Try writing it out as a series of blocks in a flow diagram then translate each block.
I'm following a guide for the TLC5960 which explains how to convert a data sheet into code and i'm surprised how easy it is to do.
Try looking through the example sketches that come with the IDE. Play around with copies of them and get them to do different things. Easier to make some small tweaks and see what happens than to write your own code from scratch.