Files

21 lines
751 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Hector_Tudors.js — domeHeadShell() (satır 1288)
[← Hector_Tudors.js](index.md) · [← Master](../../wiki.md)
```javascript
function domeHeadShell(w, cx, cy, cz, R, twist) {
var bands = 4;
for (var b = 1; b < bands; b++) {
var phi = (b / bands) * Math.PI - Math.PI / 2;
var rr = R * Math.cos(phi), yy = cy + R * Math.sin(phi);
var per = Math.max(4, Math.floor(rr * 1.2));
for (var j = 0; j < per; j++) {
var a = (j / per) * Math.PI * 2 + twist + b * 0.4;
var x = cx + Math.cos(a) * rr, z = cz + Math.sin(a) * rr;
if ((b + j) % 2 === 0) showHead(w, x, yy, z, 1.0, 2);
fx(w, "portal", x, yy, z, 1, 0, 0, 0, 0);
}
}
}
```