# Preview
## Logo:
<img src="./logo.svg" width="206" height="182">
## Favicon:
<img src="./maskable.svg" width="108" height="108">
## Inventory
- [logo.svg](./logo.svg) - The official LWLGL logo source
- [maskable.svg](./maskable.svg) - Square icon with safe-zone for generating anything from favicons to PWA icons.
# Generate assets
## Prerequisites
```bash
# Generating assets requires the following software:
# 1. Puppeteer for pixel perfect rendering and conversion of .SVGs to .PNGs
yarn
# 2. OptiPNG for optimizing .PNGs
docker pull jess/imagemagick
# 3. ImageMagick for combining multiple .PNGs to .ICO
docker pull buffcode/docker-optipng
# 4. Chromium container for Puppeteer
cd ../chromium
docker build --rm -t headless-chrome .
./run.sh
```
## Artifacts
[cheat sheet](https://github.com/audreyr/favicon-cheat-sheet)
```bash
# Favicon
node render.mjs logo.svg dist/favicon-16x16.png --width 16 --height 16
node render.mjs logo.svg dist/favicon-32x32.png --width 32 --height 32
node render.mjs logo.svg dist/favicon-48x48.png --width 48 --height 48
node render.mjs logo.svg dist/favicon-192x192.png -w 192 -h 192 --bg="#424242" --avatar -r 96
node render.mjs logo.svg dist/favicon-512x512.png -w 512 -h 512 --bg="#424242" --avatar -r 256
# apple-touch-icon
node render.mjs logo.svg dist/apple-touch-icon-192x192.png -w 192 -h 192 --bg="#424242" --safe
# Web App Manifest Icons
# # Places icon in a safe zone with a radius of 2/5 (40%) of the icon size
# # https://www.w3.org/TR/appmanifest/#dfn-safe-zone
# # TODO: enable this after Chrome starts respecting "purpose": "maskable"
# node render.mjs logo.svg dist/favicon-maskable-192x192.png -w 192 -h 192 --bg="#424242" --safe
# node render.mjs logo.svg dist/favicon-maskable-512x512.png -w 512 -h 512 --bg="#424242" --safe
# Social icon
node render.mjs logo.svg dist/social-512x512.png -w 512 -h 512 --bg="#424242" --padding 72
# Optimize with OptiPNG
docker run -v $(pwd):/source --rm -it buffcode/docker-optipng -o 7 ./dist/*.png
# Merge .PNGs to .ICO
docker run -v $(pwd):/images --rm -it jess/imagemagick \
convert /images/dist/favicon-16x16.png /images/dist/favicon-32x32.png /images/dist/favicon-48x48.png /images/dist/favicon.ico
# Use icon.svg as favicon.svg in modern browsers
cp logo.svg ./dist/favicon.svg
# Use maskable.svg in .webmanifest
cp maskable.svg ./dist/maskable.svg
```
# Design Guidelines
## Viewbox
Set your SVG viewBox to `0 0 108 108`
## Safe Zones
Append the following in your SVG files to make sure icons fall in the safe zone.
```xml
<!-- Web App Manifest Safe Zone: 2/5 (40%) radius -->
<circle cx="54" cy="54" r="43.2" fill="none" stroke-width="0.5" stroke="#00B28E" />
<!-- Android Adaptive Icon Safe Zones: 36px radius -->
<circle cx="54" cy="54" r="36" fill="none" stroke-width="0.3" stroke="#B28E00" />
<rect x="36" y="28" rx="3" ry="3" width="36" height="52" fill="none" stroke-width="0.3" stroke="#000" opacity="0.1" />
<rect x="32" y="32" rx="3" ry="3" width="44" height="44" fill="none" stroke-width="0.3" stroke="#000" opacity="0.1" />
<rect x="28" y="36" rx="3" ry="3" width="52" height="36" fill="none" stroke-width="0.3" stroke="#000" opacity="0.1" />
<circle cx="54" cy="54" r="26" fill="none" stroke-width="0.3" stroke="#000" opacity="0.3" />
<circle cx="54" cy="54" r="18" fill="none" stroke-width="0.3" stroke="#000" opacity="0.3" />
```
## Sources:
- [W3 Web App Manifest - 9.4 Icon masks and safe zone](https://www.w3.org/TR/appmanifest/#icon-masks)
- [Android Adaptive Icons](https://developer.android.com/guide/practices/ui_guidelines/icon_design_adaptive)
- [Maskable.app](https://maskable.app/)
没有合适的资源?快使用搜索试试~ 我知道了~
lwjgl3-www:LWJGL 3网站
共316个文件
ts:155个
tsx:85个
mjs:21个
5星 · 超过95%的资源 需积分: 27 2 下载量 14 浏览量
2021-02-04
12:09:11
上传
评论
收藏 499KB ZIP 举报
温馨提示
轻量级Java游戏库的主页 LWJGL的网站是使用React构建的。 它是具有客户端路由的单页应用程序。 它会安装Service Worker以便脱机工作。 显着特点: 客户端 服务人员(离线工作) 微小的生产版本(整个代码库+压缩的内容权小于300KB) 在路线和组件级别进行代码拆分 滚动恢复 路线预载 基于接近度的路由预加载(请参见/下载页面) 使用智能下载队列和客户端ZIP生成器构建定制器 自定义清单解析+代码 带CSS-in-JS 客户端使用编写 警告: 由于托管限制,当前没有服务器端呈现。 依存关系 静态资产是从LWJGL的CDN( )中加载的。 构建状态图标直接从和
资源详情
资源评论
资源推荐
收起资源包目录
lwjgl3-www:LWJGL 3网站 (316个子文件)
.browserslistrc 394B
Dockerfile 2KB
Dockerfile 504B
.dockerignore 291B
.editorconfig 192B
.eslintrc 677B
.gitattributes 19B
.gitignore 220B
.gitignore 6B
.gitkeep 0B
sample.html 7KB
favicon.ico 15KB
sample.java 3KB
webpack.config.js 5KB
sw.js 3KB
webpack.dll.js 2KB
babel.config.js 1KB
sw-destroy.js 383B
package-lock.json 1.33MB
package-lock.json 49KB
package.json 4KB
package-lock.json 1KB
tsconfig.json 725B
package.json 470B
terser-config.json 350B
package.json 334B
tsconfig.json 244B
README.md 4KB
README.md 3KB
DEPLOYMENT.md 2KB
LICENSE.md 1KB
README.md 445B
README.md 441B
README.md 406B
README.md 234B
index.mjs 12KB
post-production.mjs 5KB
tailwind.mjs 5KB
index.mjs 4KB
deploy.mjs 4KB
render.mjs 4KB
icons.mjs 3KB
ratios.mjs 2KB
vendor.mjs 1KB
build-production.mjs 1KB
build-styles.mjs 1KB
themes.mjs 1KB
browse.mjs 1KB
formatSize.mjs 1KB
bin.mjs 951B
flush.mjs 732B
highlight.mjs 637B
chunkMap.mjs 469B
ellipsis.mjs 132B
AWS.mjs 92B
prettyBytes.mjs 87B
.npmrc 61B
.prettierignore 51B
.prettierrc 348B
layout.pug 1KB
500.pug 559B
index.pug 472B
404.pug 237B
reset.scss 8KB
global.scss 3KB
entrypoint.sh 2KB
update.sh 215B
invalidate.sh 101B
run.sh 62B
maskable.svg 2KB
logo.svg 2KB
stitches.config.ts 19KB
reducer.ts 18KB
config.ts 9KB
bundler.ts 7KB
gradle.ts 7KB
color.ts 6KB
types.ts 6KB
ivy.ts 6KB
3.0.0.ts 5KB
maven.ts 5KB
useMediaControls.ts 5KB
index.ts 4KB
linux.ts 4KB
3.2.3.ts 4KB
script.ts 4KB
soundFx.ts 3KB
easing.ts 3KB
serviceWorker.ts 3KB
scrollToElement.ts 2KB
default-dark.ts 2KB
default-light.ts 2KB
useContentVisibility.ts 2KB
file-saver.ts 2KB
useFullscreen.ts 2KB
easing.ts 2KB
range.ts 2KB
3.1.0.ts 1KB
noscroll.ts 1KB
3.2.1.ts 1KB
共 316 条
- 1
- 2
- 3
- 4
w4676
- 粉丝: 24
- 资源: 4620
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- Mysql数据库考试题
- 2023年12月青少年软件编程Python等级考试五级真题(含答案和解析)
- 实验一、线性表的基本操作.doc
- Day43 Java反射(二)
- kenwood-健伍TK-868G车载电台维修手册(含PCB图、原理图)2024更新
- 基于matlab实现的OFDM系统的matlab simulink仿真框图,能设置不同参数进行仿真.rar
- 基于matlab实现的mimo信道模型,对于信道仿真的时候非常有用,都是matlab程序.rar
- 基于matlab实现的 SAR图像和光学图像的配准算法
- kenwood-健伍tm-471a车载电台维修手册(含PCB图、原理图)2024
- Android System WebView-109.0.5414.118 arm,arm64.apk
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论1