In Aegisub, creating a bordered glow effect requires combining several style elements and possibly using multiple lines with different overrides. Here's how to create a bordered glow effect:
Method 1: Using Style Settings
Open Aegisub and load your video/subtitle file
Create a new style (Right-click in Style Manager → Add New)
Configure these key properties:
Primary Color: Your text color
Secondary Color: Usually same as primary (not used for glow)
Outline Color: Border color
Shadow Color: Glow color
Outline: Set thickness (e.g., 2-3)
Shadow: Set to a higher value (e.g., 3-5) for glow effect
Method 2: Using Advanced Overrides (More Control)
For better glow effects, you can use ASS override tags directly in your subtitle line:
code
{\blur5\bord2\3c&H000000&\4c&HFFFFFF&\1a&H00&\3a&H00&\4a&H80&}Your text here
Where:
\blur5 - Creates the glow/blur effect
\bord2 - Sets border thickness to 2
\3c&H000000& - Sets border color to black
\4c&HFFFFFF& - Sets shadow/glow color to white
\1a&H00& - Text fully opaque
\3a&H00& - Border fully opaque
\4a&H80& - Shadow/glow at 50% opacity
Method 3: Double-Line Method (Best Glow)
For the best glow effect, use two subtitle lines:
Bottom line (glow):
code
{\pos(x,y)\blur8\bord0\1c&HFFFFFF&\alpha&H60&}Your text here
Top line (text with border):
code
{\pos(x,y)\blur0.6\bord2\1c&H0000FF&\3c&H000000&}Your text here
Example for Your Styles
For your "Blue" style with a bordered glow:
code
{\blur5\bord2\1c&H00BFFF&\3c&H0000FF&\4c&H0000FF&\1a&H00&\3a&H00&\4a&H80&}This is blue text with a blue glow and border
Tips for Aegisub:
Save as a style: After creating your effect, save it as a style for reuse
Adjust blur values: Higher blur = softer glow
Layer management: Set the glow layer to a lower layer number than the text
Test on different backgrounds: Glow effects can look different depending on the video background
Would you like me to provide a specific example for any of your other color styles from your predefined styles dictionary?
User
in python is it possible to like print all the named color in the language?
Assistant
Yes, you can print all the named colors available in Python using the matplotlib.colors module. Here's a simple script to do that:
python
import matplotlib.colors as mcolors
# Get all named colors
colors = dict(mcolors.CSS4_COLORS)
# Print all colors
for name, hex_value in colors.items():
print(f"{name}: {hex_value}")
# Print the total count
print(f"\nTotal named colors: {len(colors)}")
This will print all 148 named colors from the CSS4 specification that are available in matplotlib.
If you want to see these colors visually or get more information about each color (like RGB values), you could use:
python
import matplotlib.pyplot as plt
import matplotlib.colors as mcolors
import numpy as np
# Get all named colors
colors = dict(sorted(mcolors.CSS4_COLORS.items()))
# Create a figure and grid for displaying colors
n_colors = len(colors)
n_cols = 4
n_rows = int(np.ceil(n_colors / n_cols))
fig, ax = plt.subplots(figsize=(12, n_rows * 0.5))
fig.subplots_adjust(top=0.95, bottom=0.01, left=0.2, right=0.99)
# Create color swatches
for i, (name, hex_value) in enumerate(colors.items()):
rgb = mcolors.hex2color(hex_value)
row = i // n_cols
col = i % n_cols
y = row / n_rows
height = 1.0 / n_rows
width = 0.25
# Add color rectangle
rect = plt.Rectangle((col * width, y), width, height, color=hex_value)
ax.add_patch(rect)
# Add text with color name and hex value
ax.text(col * width + width/2, y + height/2, f"{name}\n{hex_value}\nRGB: {rgb}",
ha='center', va='center',
color='black' if sum(rgb) > 1.5 else 'white')
ax.set_xlim(0, n_cols * width)
ax.set_ylim(0, 1)
ax.axis('off')
plt.title(f"All {n_colors} Named Colors in matplotlib")
plt.show()
If you don't want to use matplotlib, you can also use the webcolors package:
python
import webcolors
# Print all CSS3 color names and their hex values
for name, hex_value in webcolors.CSS3_NAMES_TO_HEX.items():
print(f"{name}: {hex_value}")
print(f"\nTotal CSS3 colors: {len(webcolors.CSS3_NAMES_TO_HEX)}")
Would you like me to explain or break down any of these code examples?
User
so i need to innstall matplotlib?
Assistant
Yes, you would need to install matplotlib to access its color module. If you just want a list of named colors without installing matplotlib, there are a few alternatives:
Option 1: Use the webcolors package
python
# Install with: pip install webcolors
import webcolors
# Print all CSS3 color names and their hex values
for name, hex_value in webcolors.CSS3_NAMES_TO_HEX.items():
print(f"{name}: {hex_value}")
print(f"\nTotal CSS3 colors: {len(webcolors.CSS3_NAMES_TO_HEX)}")
Option 2: Use a built-in dictionary of colors
You can create your own dictionary of common colors:
You can use the requests package to fetch a list of colors:
python
# Install with: pip install requests
import requests
import json
# Get color data from a public API
response = requests.get("https://jonasjacek.github.io/colors/data.json")
colors = json.loads(response.text)
# Print all colors
for color in colors:
print(f"{color['name']}: #{color['hexString']}")
Option 4: Use the tkinter module (built into Python)
python
import tkinter as tk
# Get all named colors from tkinter
root = tk.Tk()
root.withdraw() # Hide the main window
# Print all named colors
for color_name in sorted(root.tk.call('tk_getPaletteFromObj', '.', 'all')):
# Convert to hex
rgb = root.winfo_rgb(color_name)
hex_color = f"#{rgb[0]//256:02x}{rgb[1]//256:02x}{rgb[2]//256:02x}"
print(f"{color_name}: {hex_color}")
root.destroy()
The simplest option is probably to install matplotlib (pip install matplotlib) or webcolors (pip install webcolors), as they provide the most comprehensive and reliable color lists.