Multiplexing RGB-LEDs

Wiring:

(sorry for that ugly painting and the second post, seems like one is not allowed to post images and links in your first post oO )

EDIT: just changed the setup to use PWM-ports for R, G and B but it still flickers...