This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
# !/usr/bin/env python3 | |
# Nicolas Seriot | |
# 2022-06-10 | |
# https://seriot.ch/visualization/truchet_simple.png | |
import cairo | |
import math | |
import random | |
NB_COLS = 8 |
# !/usr/bin/env python3 | |
# Nicolas Seriot | |
# 2022-06-14 | |
# https://seriot.ch/visualization/truchet_2.png | |
# loosely inspired by https://www.fxhash.xyz/gentk/slug/dirty-interlaced-truchet-tiles-18 | |
import cairo | |
import math | |
import random |
// | |
// Copyright (c) 2012-2015 Cédric Luthi / @0xced. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
#if TARGET_OS_SIMULATOR | |
static const char *fakeCarrier; | |
static const char *fakeTime; |
#import <UIKit/UIKit.h> | |
@interface UIView (SMFrameAdditions) | |
@property (nonatomic, assign) CGPoint $origin; | |
@property (nonatomic, assign) CGSize $size; | |
@property (nonatomic, assign) CGFloat $x, $y, $width, $height; // normal rect properties | |
@property (nonatomic, assign) CGFloat $left, $top, $right, $bottom; // these will stretch the rect | |
@end |