Le jeu Dutch se joue avec des cartes à jouer standards, sans les jokers. Il est recommandé de jouer avec deux paquets, soit 104 cartes.
Nombre de joueur: 2 à 10
Temps approximatif d'une partie: 30 minutes
function ScreenScalar(props = { p1:1, p2:1 }) { | |
const compute = () => this.value = 1 - Object.values(props).reduce((r, v) => r * (1 - v), 1) | |
compute() | |
for (const key of Object.keys(props)) { | |
Object.defineProperty(this, key, { | |
get: () => props[key], | |
set: value => { |
#version 130 | |
uniform float opacity; | |
uniform bool invert_color; | |
uniform sampler2D tex; | |
const float cornerRadius = 10.0; | |
void main() { | |
vec4 c = texture2D(tex, gl_TexCoord[0].xy); |
Shader "Custom/ToggleTest" { | |
Properties{ | |
_BackgroundTex("Background Texture", 2D) = "white"{} | |
[Toggle(USE_TEXTURE)] _UseTexture("Use Texture", Float) = 0 | |
} | |
SubShader{ | |
Tags{ "Queue" = "Transparent" "RenderType" = "Transparent" } |
Shader "ToggleTest" | |
{ | |
Properties | |
{ | |
[Toggle(FILL_WITH_RED)] | |
_FillWithRed ("Fill With Red", Float) = 0 | |
} | |
SubShader | |
{ | |
Pass |
Locate the path to the interpreter for the language you are writing in with the which
command.
which node
which python
which bash
which ruby
Add that path as an interpreter directive (using #!
) on the first line of your script. For example if you want to write a node script and which node
returned /usr/local/bin/node
, the first line of your script should be:
// NOTICE 2020-04-18 | |
// Please see the comments below about why this is not a great PRNG. | |
// Read summary by @bryc here: | |
// https://github.com/bryc/code/blob/master/jshash/PRNGs.md | |
// Have a look at js-arbit which uses Alea: | |
// https://github.com/blixt/js-arbit | |
/** |
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);
// https://frarees.github.io/default-gist-license | |
using System; | |
using UnityEngine; | |
[AttributeUsage(AttributeTargets.Field, Inherited = true, AllowMultiple = false)] | |
public class MinMaxSliderAttribute : PropertyAttribute | |
{ | |
public float Min { get; set; } | |
public float Max { get; set; } |