Created
August 16, 2013 11:59
-
-
Save Sulcalibur/6249251 to your computer and use it in GitHub Desktop.
Following the post on http://bjango.com/articles/soulver/ for Soulver. Just paste this into the top of you Calca window and you are sorted.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Design Variables for Calca | |
// Ref: [Bjango](http://bjango.com/articles/soulver/ ) | |
k = 1000 | |
iPhoneW = 320 | |
iPhoneH = 568 | |
iPhoneOldH = 480 | |
iPhonePPI = 326 | |
iPhoneOldPPI = 163 | |
iPadW = 1024 | |
iPadH = 768 | |
iPadPPI = 264 | |
iPadOldPPI = 132 | |
iPadMiniPPI = 163 | |
statusbar = 20 | |
navbar = 44 | |
tabbar = 49 | |
toolbar = 49 | |
cell = 44 | |
gr = 1.6180339888 | |
phi = 1.6180339888 | |
igr = 0.6180339888 | |
iphi = 0.6180339888 | |
iPhoneW / 4 => 80 | |
(iPhoneW - 20)/4 => 75 | |
(iPhoneH - 20)/4 => 137 | |
(iPhoneH - statusbar) * igr => 338.6826258624 | |
margin = 40 | |
gutter = 15 | |
cols = 2 | |
(iPadW - (gutter + margin * 2))/cols => 464.5 | |
(iPadH - (gutter + margin * 2))/cols => 336.5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Screenshot -
http://note.io/1abfiZG