2 cups of small chickpeas, preferably from the Bulgarian type (although, I don't think one can be too selective about that in Finland) 2/3 cups of raw tahini (I think you can find it in the Israeli food shop near Kamppi) lemon juice squeezed from 2 small lemons 1 small/medium onion 3-5 garlic cloves 1/4 - 1/3 spoons of cumin 1 spoon soda powder
This file contains 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
// | |
// 1. Add a Quad in Unity | |
// 2. Parent the quad under camera, to prevent frustum culling. | |
// 3. Attach this shader. | |
// | |
Shader "Quad/Fullscreen" | |
{ | |
Properties | |
{ | |
} |
This file contains 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
// | |
// MTKCIImageView.swift | |
// Fil | |
// | |
// Created by Muukii on 9/27/15. | |
// Copyright © 2015 muukii. All rights reserved. | |
// | |
import Foundation | |
import Metal |
Please consider using http://lygia.xyz instead of copy/pasting this functions. It expand suport for voronoi, voronoise, fbm, noise, worley, noise, derivatives and much more, through simple file dependencies. Take a look to https://github.com/patriciogonzalezvivo/lygia/tree/main/generative
float rand(float n){return fract(sin(n) * 43758.5453123);}
float noise(float p){
float fl = floor(p);
float fc = fract(p);
This file contains 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
# Chan's Convex Hull O(n log h) - Tom Switzer <[email protected]> | |
TURN_LEFT, TURN_RIGHT, TURN_NONE = (1, -1, 0) | |
def turn(p, q, r): | |
"""Returns -1, 0, 1 if p,q,r forms a right, straight, or left turn.""" | |
return cmp((q[0] - p[0])*(r[1] - p[1]) - (r[0] - p[0])*(q[1] - p[1]), 0) | |
def _keep_left(hull, r): | |
while len(hull) > 1 and turn(hull[-2], hull[-1], r) != TURN_LEFT: |