영어지만, 조금 더 상세하게 마크다운 사용법을 안내하고 있는
"Markdown Guide (https://www.markdownguide.org/)" 를 보시는 것을 추천합니다. ^^
아, 그리고 마크다운만으로 표현이 부족하다고 느끼신다면, HTML 태그를 활용하시는 것도 좋습니다.
영어지만, 조금 더 상세하게 마크다운 사용법을 안내하고 있는
"Markdown Guide (https://www.markdownguide.org/)" 를 보시는 것을 추천합니다. ^^
아, 그리고 마크다운만으로 표현이 부족하다고 느끼신다면, HTML 태그를 활용하시는 것도 좋습니다.
| /* | |
| * Created by C.J. Kimberlin | |
| * | |
| * The MIT License (MIT) | |
| * | |
| * Copyright (c) 2019 | |
| * | |
| * 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 |
| // JS array equivalents to C# LINQ methods - by Dan B. | |
| // First: This version using older JavaScript notation for universal browser support (scroll down for ES6 version): | |
| // Here's a simple array of "person" objects | |
| var people = [ | |
| { name: "John", age: 20 }, | |
| { name: "Mary", age: 35 }, | |
| { name: "Arthur", age: 78 }, | |
| { name: "Mike", age: 27 }, |
| // ⚠ IMPORTANT: this is old and doesn't work for many different edge cases but I'll keep it as-is for any of you want it | |
| // ⚠ IMPORTANT: you can find more robust versions in the comments or use a library implementation such as lodash's `merge` | |
| // Merge a `source` object to a `target` recursively | |
| const merge = (target, source) => { | |
| // Iterate through `source` properties and if an `Object` set property to merge of `target` and `source` properties | |
| for (const key of Object.keys(source)) { | |
| if (source[key] instanceof Object) Object.assign(source[key], merge(target[key], source[key])) | |
| } |
| /* | |
| * This is an implementation of wcwidth() and wcswidth() (defined in | |
| * IEEE Std 1002.1-2001) for Unicode. | |
| * | |
| * http://www.opengroup.org/onlinepubs/007904975/functions/wcwidth.html | |
| * http://www.opengroup.org/onlinepubs/007904975/functions/wcswidth.html | |
| * | |
| * In fixed-width output devices, Latin characters all occupy a single | |
| * "cell" position of equal width, whereas ideographic CJK characters | |
| * occupy two such cells. Interoperability between terminal-line |
| using System; | |
| using UnityEngine; | |
| public static class Extensions_Math | |
| { | |
| // ... | |
| public static float VectorToRad(this Vector2 thisVec){ | |
| return Mathf.Atan2(thisVec.y, thisVec.x); |
| ---------------------------------------------------------------------- | |
| -- Generate Normal Map | |
| -- | |
| -- It works only for RGB color mode. | |
| ---------------------------------------------------------------------- | |
| if app.apiVersion < 1 then | |
| return app.alert("This script requires Aseprite v1.2.10-beta3") | |
| end | |
| // Revision history | |
| // Rev 1 16/MAY/2021 initial | |
| // Rev 2 23/AUG/2021 add support for array property path | |
| // Rev 3 23/AUG/2021 cache using type+path (s_PathHashVsType) | |
| // Rev 4 23/AUG/2021 properly handling array and list by stealing code from Unity CS reference | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Reflection; | |
| using UnityEditor; |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using UnityEditor; | |
| using UnityEditor.Callbacks; | |
| using UnityEditor.Compilation; | |
| using UnityEngine; | |
| public static class FlyoutProjectWindow | |
| { |
| /** | |
| * \brief Returns positional offset for a given point as a result of summing 4 gerstner waves | |
| * \param positionWS point in world space | |
| * \param wavelengths wavelength of each of the 4 waves | |
| * \param amplitudes amplitudes of each of the 4 waves | |
| * \param directions direction of each of the 4 waves (each row = one direction). MUST BE NORMALIZED! | |
| * \param speed global speed multiplier. Individual wave speed depends on Wavelength | |
| * \param steepness Gerstner wave 'Steepness' parameter. Modulates the horizontal offset of points | |
| * \param normal returns the normal of given point. | |
| * \return positional offset of the given point |