๐
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
| import SwiftUI | |
| struct ScalingStaticPieChart: View { | |
| var body: some View { | |
| GeometryReader { geometry in | |
| let gc = geometry.size.width * 0.5 | |
| let gcenter = CGPoint(x: gc, y: gc) | |
| let outsize = geometry.size.width * 0.4 | |
| ZStack { |
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
| #!/bin/bash | |
| # Sizes from https://developer.apple.com/library/ios/#qa/qa1686/_index.html | |
| # Requirements: ImageMagick | |
| function resize { | |
| GREEN='\033[0;32m' | |
| BLUE='\033[0;34m' | |
| DEFAULT='\033[0m' | |
| echo -e "Generating ${BLUE}$3${DEFAULT} at size ${GREEN}$2 ${DEFAULT}" | |
| convert $1 -resize $2 $3 |
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
| #!/bin/zsh | |
| # Asks a series of questions and then returns an image | |
| # use like "bash catchphrase.sh" | |
| echo "What is your favorite color?" | |
| read theColor | |
| echo "What is your catchphrase?" | |
| read thePhrase | |
| convert -size 1000x1000 xc:$theColor +repage \ | |
| -size 800x800 -fill white -background None \ |