AI Neon Sign - Type Your Own Glowing Text

50 views Β· Dec 15, 2025

Transform your words into a glowing neon sign! Type anything and watch it light up with a realistic neon glow effect. Click to cycle through vibrant neon colors. Dark brick wall background adds to the nightlife atmosphere. Perfect for creating custom neon art. Created with xelsed-alpha6-flash.

#xelsedia#xelsedai#generativeart#p5js#creativecoding#neon#typography#glow#interactive#night
πŸ”€ Remix This πŸ“– View Docs β›Ά Full Screen ← Back to Gallery
πŸ“‹ Embed Code

Copy this code to embed this sketch on your website:

<iframe src="https://p5js.ai/embed/c148e120-66b7-4bba-93b6-3f3b2a83432e" width="400" height="400" frameborder="0" allow="autoplay" title="AI Neon Sign - Type Your Own Glowing Text"></iframe>

Adjust width and height as needed. Preview embed β†’

❓ About This Sketch 3 questions

What visual effects does the AI Neon Sign sketch create?

The sketch transforms user-input text into a glowing neon sign effect, set against a dark brick wall background, enhancing the vibrant nightlife atmosphere.

How can users interact with the AI Neon Sign sketch?

Users can type their own text to create a custom neon sign and click the canvas to cycle through different vibrant neon colors.

What creative coding techniques are demonstrated in this sketch?

This sketch showcases techniques like dynamic text rendering, color cycling, and procedural generation using noise to create a glowing effect.

πŸ’¬ AI Chat History 2 messages
πŸ‘€ You
Create a neon sign text generator. Use createInput() for typing. Display the typed text as glowing neon letters in the center of the canvas. Neon effect: draw the text multiple times with decreasing alpha and increasing size to create glow. Use bright neon colors (pink, cyan, or green). Dark brick wall texture background (use rectangles). Add subtle flicker animation (randomly vary brightness). Text should be large and bold. Include a color picker or cycle through colors on click. Keep code under 50 lines.
πŸ€– AI
Here’s a complete neon text generator with glow, brick wall, flicker, and click-to-cycle colors, with `sketch.js` under 50 lines.

```js
// sketch.js
let inp, cols, ci = 0;
function setup() {
createCanvas(windowWidth, windowHeight);
textAlign(CENTER, CENTER); textStyle(BOLD); noStroke();
inp = createInput("NEON"); inp.position(20, 20); inp.size(200);
cols = [color(255, 60, 200), color(0, 255, 255), color(0, 255, 120)];
}
function draw() {
drawBricks();
let t = inp.value() || " ";
let base = min(width, height) * 0.18, f = map(noise(frameCount * 0.05), 0, 1, 0.7, 1.1);
let c = cols[ci];
for (let i = 12; i > 0; i--) {
let a = 255 * pow(i / 12, 1.5) * f;
fill(red(c), green(c), blue(c), a);
textSize(base + i * 4);
text(t, width / 2, height / 2);
}
}
function drawBricks() {
background(10, 10, 15);
fill(25); stroke(15); strokeWeight(2);
for (let y = 0; y < height + 40; y += 40) {
for (let x = (y / 40) % 2 ? 40 : 0; x < width + 80; x += 80) rect(x, y, 80, 40);
}
noStroke();
}
function mousePressed() { ci = (ci + 1) % cols.length; }
function windowResized() { resizeCanvas(windowWidth, windowHeight); }
```

```html
<!-- index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Neon Sign Generator</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<script src="https://cdn.jsdelivr.net/npm/p5@1.11.3/lib/p5.min.js"></script>
<script src="sketch.js"></script>
</body>
</html>
```

```css
/* style.css */
body {
margin: 0;
padding: 0;
overflow: hidden;
background: #050509;
font-family: system-ui, sans-serif;
}
canvas {
display: block;
}
input {
position: absolute;
z-index: 10;
padding: 4px 8px;
background: #111;
border: 1px solid #444;
color: #f5f5f5;
}
```

Notes (p5.js 1.11.3):

- `createInput` for typing: [docs](https://p5js.org/reference/#/p5/createInput)
- Text glow is done by drawing the same `text()` multiple times with varying `textSize` and alpha.
- Flicker uses `noise(frameCount * 0.05)` to modulate brightness smoothly.
- Click anywhere to cycle neon colors (pink β†’ cyan β†’ green).
🎬 Video Preview