ƧJ.ԐD.ᔓᔕᗱᗴᙁᑐᑕᴥꖴᑐᑕ✤ИNᗱᗴᕤᕦИNᗩ✤ᙁᗩꖴᗝᗩᴥᴥᗩᗝꖴᗩᙁ✤ᗩИNᕤᕦᗱᗴИN✤ᑐᑕꖴᴥᑐᑕᙁᗱᗴᔓᔕ.D3.JS

ƧJ.ԐD.ᔓᔕᗱᗴᑐᑕᑐᑕИNᗱᗴᕤᕦИNИNᕤᕦᗱᗴИNᑐᑕᑐᑕᗱᗴᔓᔕ.D3.JS

Signed-off-by: OOOO <oooooooooooooooo@skiff.com>
This commit is contained in:
OOOO 2023-08-27 16:22:59 +00:00
parent 7a1ddc1316
commit 530bb89104
2 changed files with 69 additions and 0 deletions

View File

@ -0,0 +1,69 @@
function _1(md){return(
md`# ⚪ᔓᔕ⚪ᗱᗴ⚪ᙁ⚪ᑐᑕ⚪ᴥ⚪ꖴ⚪ᑐᑕ⚪◯⚪✤⚪ИN⚪ᗱᗴ⚪ᕤᕦ⚪ИN⚪ᗩ⚪✤⚪◯⚪ᙁ⚪ᗩ⚪ꖴ⚪ᗝ⚪ᗩ⚪ᴥ⚪◌⚪◌⚪◌⚪◌⚪◌⚪◌⚪ᴥ⚪ᗩ⚪ᗝ⚪ꖴ⚪ᗩ⚪ᙁ⚪◯⚪✤⚪ᗩ⚪ИN⚪ᕤᕦ⚪ᗱᗴ⚪ИN⚪✤⚪◯⚪ᑐᑕ⚪ꖴ⚪ᴥ⚪ᑐᑕ⚪ᙁ⚪ᗱᗴ⚪ᔓᔕ⚪`
)}
function _2(width,DOM,O_EULAW_REDILS_ELCRIC_EGRAL_GNOLA_DEBIRCSNI_SELCRIC_LAMS_FO_REBMUN_O_NUMBER_OF_SMAL_CIRCLES_INSCRIBED_ALONG_LARGE_CIRCLE_SLIDER_WALUE_O)
{
let O_HTDIW_O_WIDTH_O=width;
let O_THGIEH_O_HEIGHT_O=width/(327/180)+2;
const dc = DOM.context2d(O_HTDIW_O_WIDTH_O,O_THGIEH_O_HEIGHT_O);
dc.clearRect(0,0,O_HTDIW_O_WIDTH_O,O_THGIEH_O_HEIGHT_O);
dc.fillStyle='#F2F2F2';
var O_ELCRIC_EGRAL_GNOLA_DEBIRCSNI_SELCRIC_LAMS_FO_REBMUN_O_NUMBER_OF_SMAL_CIRCLES_INSCRIBED_ALONG_LARGE_CIRCLE_O
=
O_EULAW_REDILS_ELCRIC_EGRAL_GNOLA_DEBIRCSNI_SELCRIC_LAMS_FO_REBMUN_O_NUMBER_OF_SMAL_CIRCLES_INSCRIBED_ALONG_LARGE_CIRCLE_SLIDER_WALUE_O;
var O_SUIDAR_ELCRIC_EGRAL_O_LARGE_CIRCLE_RADIUS_O
=
(O_HTDIW_O_WIDTH_O/2/(327/180))
-
(
(O_HTDIW_O_WIDTH_O/2/(327/180))
*
(Math.sin((4*Math.atan(1))/O_ELCRIC_EGRAL_GNOLA_DEBIRCSNI_SELCRIC_LAMS_FO_REBMUN_O_NUMBER_OF_SMAL_CIRCLES_INSCRIBED_ALONG_LARGE_CIRCLE_O)
/
(1+Math.sin((4*Math.atan(1))/O_ELCRIC_EGRAL_GNOLA_DEBIRCSNI_SELCRIC_LAMS_FO_REBMUN_O_NUMBER_OF_SMAL_CIRCLES_INSCRIBED_ALONG_LARGE_CIRCLE_O))
)
)
;
var O_SUIDAR_ELCRIC_LAMS_O_SMAL_CIRCLE_RADIUS_O
=
(
(O_HTDIW_O_WIDTH_O/2)
*
(Math.sin((4*Math.atan(1))/O_ELCRIC_EGRAL_GNOLA_DEBIRCSNI_SELCRIC_LAMS_FO_REBMUN_O_NUMBER_OF_SMAL_CIRCLES_INSCRIBED_ALONG_LARGE_CIRCLE_O)
/
(1+Math.sin((4*Math.atan(1))/O_ELCRIC_EGRAL_GNOLA_DEBIRCSNI_SELCRIC_LAMS_FO_REBMUN_O_NUMBER_OF_SMAL_CIRCLES_INSCRIBED_ALONG_LARGE_CIRCLE_O))
)
)
;
var O_X_RETNEC_O_CENTER_X_O=O_HTDIW_O_WIDTH_O/2;
var O_Y_RETNEC_O_CENTER_Y_O=O_THGIEH_O_HEIGHT_O/2;
for (var i = 1; i <= O_ELCRIC_EGRAL_GNOLA_DEBIRCSNI_SELCRIC_LAMS_FO_REBMUN_O_NUMBER_OF_SMAL_CIRCLES_INSCRIBED_ALONG_LARGE_CIRCLE_O; ++i)
{
dc.beginPath();
var O_ELGNA_O_ANGLE_O = i*2*(4*Math.atan(1))/O_ELCRIC_EGRAL_GNOLA_DEBIRCSNI_SELCRIC_LAMS_FO_REBMUN_O_NUMBER_OF_SMAL_CIRCLES_INSCRIBED_ALONG_LARGE_CIRCLE_O;
var x = O_X_RETNEC_O_CENTER_X_O + Math.cos(O_ELGNA_O_ANGLE_O) * O_SUIDAR_ELCRIC_EGRAL_O_LARGE_CIRCLE_RADIUS_O;
var y = O_Y_RETNEC_O_CENTER_Y_O + Math.sin(O_ELGNA_O_ANGLE_O) * O_SUIDAR_ELCRIC_EGRAL_O_LARGE_CIRCLE_RADIUS_O;
dc.arc(x, y, O_SUIDAR_ELCRIC_LAMS_O_SMAL_CIRCLE_RADIUS_O/(327/180),0,2*(4*Math.atan(1)));
dc.fill();
}
return dc.canvas;
}
function _O_EULAW_REDILS_ELCRIC_EGRAL_GNOLA_DEBIRCSNI_SELCRIC_LAMS_FO_REBMUN_O_NUMBER_OF_SMAL_CIRCLES_INSCRIBED_ALONG_LARGE_CIRCLE_SLIDER_WALUE_O(Inputs){return(
Inputs.range([2, 510], {label: "", step: 1})
)}
export default function define(runtime, observer) {
const main = runtime.module();
main.variable(observer()).define(["md"], _1);
main.variable(observer()).define(["width","DOM","O_EULAW_REDILS_ELCRIC_EGRAL_GNOLA_DEBIRCSNI_SELCRIC_LAMS_FO_REBMUN_O_NUMBER_OF_SMAL_CIRCLES_INSCRIBED_ALONG_LARGE_CIRCLE_SLIDER_WALUE_O"], _2);
main.variable(observer("viewof O_EULAW_REDILS_ELCRIC_EGRAL_GNOLA_DEBIRCSNI_SELCRIC_LAMS_FO_REBMUN_O_NUMBER_OF_SMAL_CIRCLES_INSCRIBED_ALONG_LARGE_CIRCLE_SLIDER_WALUE_O")).define("viewof O_EULAW_REDILS_ELCRIC_EGRAL_GNOLA_DEBIRCSNI_SELCRIC_LAMS_FO_REBMUN_O_NUMBER_OF_SMAL_CIRCLES_INSCRIBED_ALONG_LARGE_CIRCLE_SLIDER_WALUE_O", ["Inputs"], _O_EULAW_REDILS_ELCRIC_EGRAL_GNOLA_DEBIRCSNI_SELCRIC_LAMS_FO_REBMUN_O_NUMBER_OF_SMAL_CIRCLES_INSCRIBED_ALONG_LARGE_CIRCLE_SLIDER_WALUE_O);
main.variable(observer("O_EULAW_REDILS_ELCRIC_EGRAL_GNOLA_DEBIRCSNI_SELCRIC_LAMS_FO_REBMUN_O_NUMBER_OF_SMAL_CIRCLES_INSCRIBED_ALONG_LARGE_CIRCLE_SLIDER_WALUE_O")).define("O_EULAW_REDILS_ELCRIC_EGRAL_GNOLA_DEBIRCSNI_SELCRIC_LAMS_FO_REBMUN_O_NUMBER_OF_SMAL_CIRCLES_INSCRIBED_ALONG_LARGE_CIRCLE_SLIDER_WALUE_O", ["Generators", "viewof O_EULAW_REDILS_ELCRIC_EGRAL_GNOLA_DEBIRCSNI_SELCRIC_LAMS_FO_REBMUN_O_NUMBER_OF_SMAL_CIRCLES_INSCRIBED_ALONG_LARGE_CIRCLE_SLIDER_WALUE_O"], (G, _) => G.input(_));
return main;
}