Skip to content

Instantly share code, notes, and snippets.

View FronkonGames's full-sized avatar

Fronkon Games FronkonGames

View GitHub Profile
@FronkonGames
FronkonGames / TailwindColors.cs
Created July 5, 2024 21:12
Tailwind color palette for Unity.
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// _______ _ _ _ _ _____ _
// |__ __| (_) | (_) | | / ____| | |
// | | __ _ _| |_ ___ _ __ __| | | | ___ | | ___ _ __ ___
// | |/ _` | | \ \ /\ / / | '_ \ / _` | | | / _ \| |/ _ \| '__/ __|
// | | (_| | | |\ V V /| | | | | (_| | | |___| (_) | | (_) | | \__ \
// |_|\__,_|_|_| \_/\_/ |_|_| |_|\__,_| \_____\___/|_|\___/|_| |___/
//
// An expertly-crafted color palette out-of-the-box that is a great starting point if you don’t have your
// own specific branding in mind. Based on https://tailwindcss.com/docs/customizing-colors
@FronkonGames
FronkonGames / Card.cs
Last active November 16, 2022 21:49
Dragging And Dropping 3D Cards
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2022 Martin Bustos @FronkonGames <fronkongames@gmail.com>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
// documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of
// the Software.
@FronkonGames
FronkonGames / TinyTween.cs
Created October 30, 2022 23:20
A Complete and Easy to use Tweens library in One File.
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
// _____ _ _____
// |_ _|_|___ _ _ |_ _|_ _ _ ___ ___ ___
// | | | | | | | | | | | | | -_| -_| |
// |_| |_|_|_|_ | |_| |_____|___|___|_|_|
// |___|
// A Complete and Easy to use Tweens library in One File
//
// Basic use:
@FronkonGames
FronkonGames / FrontCard.shader
Created October 10, 2022 00:13
Front Card Shader
Shader "Card/Front"
{
// Properties are options set per material,
// exposed by the material inspector.
Properties
{
// [MainTexture] allow Material.mainTexture to use the correct properties.
[MainTexture] _BaseMap("Image (RGBA)", 2D) = "white" {}
_FrameTex("Frame (RGBA)", 2D) = "white" {}
@FronkonGames
FronkonGames / BorderCard.shader
Created October 9, 2022 23:57
Border Card Shader
Shader "Card/Border"
{
// Properties are options set per material,
// exposed by the material inspector.
Properties
{
// [MainColor] allow Material.color to use the correct properties.
[MainColor] _BaseColor("Base Color", Color) = (1, 1, 1, 1)
}
@FronkonGames
FronkonGames / BackSideCard.shader
Created October 9, 2022 23:55
Back Side Card Shader.
Shader "Card/Back Side"
{
// Properties are options set per material,
// exposed by the material inspector.
Properties
{
// [MainTexture] allow Material.mainTexture to use the correct properties.
[MainTexture] _BaseMap("Image (RGB)", 2D) = "white" {}
_FrameColor("Frame Color", Color) = (1, 1, 1, 1)