Skip to content

Instantly share code, notes, and snippets.

@Sulcalibur
Created August 16, 2013 11:59
Show Gist options
  • Save Sulcalibur/6249251 to your computer and use it in GitHub Desktop.
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.
// 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
@Sulcalibur
Copy link
Author

Screenshot - Calca Window

http://note.io/1abfiZG

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment