KITASENJU DESIGN BLOG

memo, html, javascript, unity

Entries from 2023-06-01 to 1 month

lab色空間

export class LabColor { /** * * @param l 0 to 100 * @param a -128 to 127 * @param b -128 to 127 * @returns */ labToRgb(l: number, a: number, b: number): {r:number, g:number, b:number} { let y = (l + 16) / 116; let x = a / 500 + y; let z = …

webpackでproduction/developmentを切り替える

mode: process.env.NODE_ENV === 'production' ? 'production' : 'development', $ npx webpack --watch --env development $ npx webpack --watch --env production

タスクランナー的なやつを使わないでお気軽にpugを書きたい

さくっとpugやscssをかきたい。 そういう中で重宝するがvscodeのエクステンション、FormatterHero。 pugをhtmlに変換する方法の紹介!VScodeやブラウザのツール、npmを使った書き出し方法 書き出し先などはエクステンションのタブでFormatterHeroを選び右ク…

npx hardhat verifyがうまくいかない

こんなエラー npx hardhat verify CONTRACT_ADDRESS --network mumbai Nothing to compile No need to generate any newer typings. An unexpected error occurred: [Error: ENOENT: no such file or directory, open '/Users/XXX/XXX/XXX/XXX/XXX/mynft/art…

svgだけでcssアニメーション

@keyframes anim { 0%{ opacity: 0; } 100% { opacity: 1;} } <svg width="100%" height="200"> <style> @keyframes anim { 0%{ opacity: 0; } 100% { opacity: 1;} } </style> <rect width="100%" height="200" style="fill:red;"></rect> </svg>

"FOOTER"