Skip to content

Instantly share code, notes, and snippets.

View kennygoff's full-sized avatar

Kenny Goff kennygoff

View GitHub Profile
@kennygoff
kennygoff / test.tsx
Created March 3, 2022 19:58
Notion screen kenny goff
import { block } from "./data";
import { Checks } from "./components/Checks";
import { WelcomeParagraph } from "./components/WelcomeParagraph";
import { useState } from "react";
import styled from "@emotion/styled";
console.log(block);
// pt 1
// full json structure
package effects;
import openfl.display.BitmapData;
import flixel.util.FlxColor;
import flixel.system.FlxAssets.FlxShader;
/**
* https://gamedevelopment.tutsplus.com/tutorials/how-to-use-a-shader-to-dynamically-swap-a-sprites-colors--cms-25129
* https://github.com/HaxeFlixel/flixel-demos/blob/master/Effects/BlendModeShaders/source/openfl8/effects/ColorSwapEffect.hx
* https://community.openfl.org/t/passing-an-array-as-parameter-to-shader/9932/9
uniform sampler2D swapTexture;
uniform bool shaderIsActive;
void main()
{
vec4 pixel = texture2D(bitmap, openfl_TextureCoordv);
if (!shaderIsActive)
{
gl_FragColor = pixel;
@kennygoff
kennygoff / PlaceholderText.js
Created June 27, 2019 17:12
Skeleton placeholder for text
import React from 'react';
import styled from '@emotion/styled';
import { keyframes } from '@emotion/core';
const pulse = props => keyframes`
0% {
background-color: ${props.theme.colors.placeholder};
}
70% {
@kennygoff
kennygoff / readme.txt
Created May 11, 2019 18:22
ESC (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@kennygoff
kennygoff / readme.txt
Created May 11, 2019 17:41
ESC (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@kennygoff
kennygoff / readme.txt
Created May 11, 2019 17:34
ESC (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@kennygoff
kennygoff / readme.txt
Created May 9, 2019 15:49
ESC (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@kennygoff
kennygoff / readme.txt
Created May 9, 2019 15:26
ESC (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@kennygoff
kennygoff / readme.txt
Created May 9, 2019 15:23
ESC (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html