How to set sketch size as a ratio of displayWidth

Please read following topic.