{"id":12,"date":"2026-02-11T12:58:04","date_gmt":"2026-02-11T12:58:04","guid":{"rendered":"https:\/\/sealinder.com\/?p=12"},"modified":"2026-02-11T12:58:04","modified_gmt":"2026-02-11T12:58:04","slug":"bienvenue","status":"publish","type":"post","link":"https:\/\/sealinder.com\/index.php\/2026\/02\/11\/bienvenue\/","title":{"rendered":"Bienvenue"},"content":{"rendered":"\n<div id=\"cylinder-container\" style=\"width:100%; height:500px;\"><\/div>\n\n<script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/three.js\/r128\/three.min.js\"><\/script>\n\n<script>\nconst container = document.getElementById('cylinder-container');\n\n\/\/ Scene\nconst scene = new THREE.Scene();\n\n\/\/ Camera (vue 3\/4)\nconst camera = new THREE.PerspectiveCamera(\n  75,\n  container.clientWidth \/ container.clientHeight,\n  0.1,\n  1000\n);\ncamera.position.set(2, 1.5, 5);\ncamera.lookAt(0, 0, 0);\n\n\/\/ Renderer\nconst renderer = new THREE.WebGLRenderer({ antialias: true, alpha: true });\nrenderer.setSize(container.clientWidth, container.clientHeight);\nrenderer.setPixelRatio(window.devicePixelRatio);\ncontainer.appendChild(renderer.domElement);\n\n\/\/ Cylindre\nconst geometry = new THREE.CylinderGeometry(1, 1, 3, 64);\n\n\/\/ Texture unie avec texte\nconst canvas = document.createElement('canvas');\ncanvas.width = 1024;\ncanvas.height = 512;\nconst ctx = canvas.getContext('2d');\n\n\/\/ Couleur unie (ex : bleu)\nctx.fillStyle = '#0077ff';\nctx.fillRect(0, 0, 1024, 512);\n\n\/\/ Texte blanc\nctx.fillStyle = 'white';\nctx.font = 'bold 100px Arial';\nctx.textAlign = 'center';\nctx.textBaseline = 'middle';\nctx.fillText('Sealinder', 512, 256);\n\nconst texture = new THREE.CanvasTexture(canvas);\ntexture.wrapS = THREE.RepeatWrapping;\ntexture.repeat.set(1,1);\n\nconst material = new THREE.MeshStandardMaterial({ map: texture });\n\n\/\/ Mesh\nconst cylinder = new THREE.Mesh(geometry, material);\ncylinder.rotation.z = Math.PI \/ 4; \/\/ inclinaison 45\u00b0\ncylinder.rotation.x = 0.4;         \/\/ effet 3\/4\nscene.add(cylinder);\n\n\/\/ Lumi\u00e8res\nconst light = new THREE.DirectionalLight(0xffffff, 1);\nlight.position.set(5,5,5);\nscene.add(light);\n\nconst ambientLight = new THREE.AmbientLight(0xffffff, 0.4);\nscene.add(ambientLight);\n\n\/\/ Animation\nfunction animate() {\n  requestAnimationFrame(animate);\n  cylinder.rotateY(0.02); \/\/ rotation sur l'axe\n  renderer.render(scene, camera);\n}\n\nanimate();\n\n\/\/ Responsive\nwindow.addEventListener(\"resize\", () => {\n  camera.aspect = container.clientWidth \/ container.clientHeight;\n  camera.updateProjectionMatrix();\n  renderer.setSize(container.clientWidth, container.clientHeight);\n});\n<\/script>\n\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-12","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/sealinder.com\/index.php\/wp-json\/wp\/v2\/posts\/12","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sealinder.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sealinder.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sealinder.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sealinder.com\/index.php\/wp-json\/wp\/v2\/comments?post=12"}],"version-history":[{"count":1,"href":"https:\/\/sealinder.com\/index.php\/wp-json\/wp\/v2\/posts\/12\/revisions"}],"predecessor-version":[{"id":13,"href":"https:\/\/sealinder.com\/index.php\/wp-json\/wp\/v2\/posts\/12\/revisions\/13"}],"wp:attachment":[{"href":"https:\/\/sealinder.com\/index.php\/wp-json\/wp\/v2\/media?parent=12"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sealinder.com\/index.php\/wp-json\/wp\/v2\/categories?post=12"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sealinder.com\/index.php\/wp-json\/wp\/v2\/tags?post=12"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}