pseudocode for opacity + size