This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function saveCanvas () { | |
const canvasDataUrl = myCanvas.toDataURL() | |
const decoded = dataUriToBuffer(canvasDataUrl) | |
fs.writeFile(imageFilePath, decoded, (err) => { | |
if (err) { | |
window.alert('ファイルの保存に失敗しました') | |
console.log(err) | |
} else { | |
window.alert('ファイルを保存しました') | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define SSD1306_I2C_ADDRESS 0x3D // 011110+SA0+RW - 0x3C or 0x3D |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.22464679915e-16 | 0.0 | -1.0 | |
---|---|---|---|
-0.0185511469485 | 0.0795141687573 | -0.996661101836 | |
-0.11510877307 | 0.00780833227827 | -0.993322203673 | |
-0.0794333510688 | -0.11671931096 | -0.989983305509 | |
0.0488700851286 | -0.155385096561 | -0.986644407346 | |
0.163177583038 | -0.0805192648137 | -0.983305509182 | |
0.191430375208 | 0.0549531867769 | -0.979966611018 | |
0.12268505648 | 0.176484241225 | -0.976627712855 | |
-0.00750226789622 | 0.229461541818 | -0.973288814691 | |
-0.144663150994 | 0.195626511937 | -0.969949916528 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# coding: utf-8 | |
'''参考文献に記載されているDelphiのコードの移植版 | |
Notes | |
----- | |
参考文献: 多数の点を球面上に一様分布させるソフトウェアGSS Generator | |
https://www.jstage.jst.go.jp/article/geoinformatics/12/1/12_1_3/_article/-char/ja/ |
OlderNewer