Skip to content

Instantly share code, notes, and snippets.

View chaosddp's full-sized avatar

Chaos Yu chaosddp

  • Beijing
  • 17:22 (UTC +08:00)
View GitHub Profile
// TinyTween.cs
//
// Copyright (c) 2013 Nick Gravelyn
//
// 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:
//
@chaosddp
chaosddp / FontTool.cs
Created September 9, 2022 04:06 — forked from SenpaiSharp/FontTool.cs
using SharpFont with Monogame
#region MIT License
/*Copyright (c) 2016 Robert Rouhani <robert.rouhani@gmail.com>
SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team
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
@chaosddp
chaosddp / MonoGameFontUtil.cs
Created September 9, 2022 04:13 — forked from Muscipular/MonoGameFontUtil.cs
monogame dynamic draw font, using SharpFont, and cache with texture2d
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using SharpFont;
namespace MonoFont
{
@chaosddp
chaosddp / test.gd
Created September 27, 2022 01:56 — forked from winston-yallow/test.gd
Godot 4.x Compute Example
extends Node
# Based on this tweet by Clay John:
# https://twitter.com/john_clayjohn/status/1306447928932753408
func _ready() -> void:
# Create a local rendering device.
var rd := RenderingServer.create_local_rendering_device()