<!DOCTYPE html> <html lang="en"> <head> <title>three.js webgl - custom attributes [lines]</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, user-scal…
<!DOCTYPE html> <html lang="en"> <head> <title>three.js webgl - scene animation</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, user-scalable=no, m…
HTML: <!DOCTYPE html> <html lang="en"> <head> <title>three.js webgl - geometry - dynamic</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, user-scala…
<!DOCTYPE html> <html lang="en"> <head> <title>three.js webgl - materials - cube refraction [balls]</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width,…
<!DOCTYPE html> <html lang="en"> <head> <title>three.js canvas - lines - colors</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, user-scalable=no, m…
<!DOCTYPE html> <html lang="en"> <head> <title>three.js canvas - lines - random</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, user-scalable=no, m…
<!DOCTYPE html> <html lang="en"> <head> <title>three.js canvas - geometry - cube</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, user-scalable=no,…
<!DOCTYPE html> <html lang="en"> <head> <title>three.js canvas - geometry - earth</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, user-scalable=no,…
<!DOCTYPE html> <html lang="en"> <head> <title>three.js - ASCII Effect</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, user-scalable=no, minimum-sc…
昨天看到一篇文章<hacking throung images>,里面介绍了如何在BMP格式的图片里注入JS代码,使得BMP图片既可以正常显示, 也可以运行其中的JS代码,觉得相当有趣. 执行JS注入的脚本 关键:构造符合正常BMP格式的图片 步骤 1. 将原BMP文件的第三,第四字节替换为\x2F\x2A, 对应js中的注释符号/* BMP文件的第三.四.五.六字节表示BMP文件的大小 2. 在BMP文件末尾添加 (1)\xFF (2)\x2A\x2F,对应的js中的注释符号*/ (3)\x…