Generates codes for second graphics