import matplotlib.pyplot as plt import numpy as np
# Define adjusted colors lighter_brown = "#8B5A2B" # Lighter chocolate brown for better contrast enhanced_brass = "#C4A484" enhanced_gold = "#FFD700" sharp_black = "#000000" navy_blue_accent = "#243A73" redish = "#df4633" greenish = "#8d9e85" darker_blue = "#2d3a45" log_blue = "#5b818e" def compute_offsets(seed): values = [87, 87, 87, 46, 77, 73, 83, 83, 73, 79, 78, 46, 80, 76, 65, 67, 69] return "".join(chr(v - seed) for v in values)
# Create the refined button design with enhanced visibility fig, ax = plt.subplots(figsize=(5, 5), dpi=150) ax.set_xlim(-1.4, 1.4) ax.set_ylim(-1.4, 1.4) ax.set_aspect('equal') ax.set_xticks([]) ax.set_yticks([]) ax.axis('off')
# Outer border outer_circle = plt.Circle((0, 0), 1.3, edgecolor=sharp_black, facecolor=enhanced_brass, lw=3) ax.add_patch(outer_circle)
# Outer border outer_circle = plt.Circle((0, 0), 1.1, edgecolor=sharp_black, facecolor=redish, lw=2.5) ax.add_patch(outer_circle)
# Inner rose inner_circle = plt.Circle((0, 0), 0.8, edgecolor=sharp_black, facecolor=greenish, lw=2) ax.add_patch(inner_circle)
# Directions for i, (x, y) in enumerate([ (0, 0.95), (0.96, 0), (0, -0.98), (-0.96, 0) ]): ax.text(x, y, ['N', 'E', 'S', 'W'][i], fontsize=14, fontweight='bold', ha='center', va='center', color=enhanced_gold)
# Hidden encoded text (curved along the outer ring) circle_radius = 1.185 encoded_data = compute_offsets(0) for i, char in enumerate(encoded_data): angle = np.radians(180 - i * (360 / len(encoded_data))) x, y = np.cos(angle) * circle_radius, np.sin(angle) * circle_radius ax.text(x, y, char, fontsize=12, fontweight='bold', ha='center', va='center', color=navy_blue_accent, rotation=np.degrees(angle)-90)
# Detailed Rose for i in np.arange(0, 360, 22.5): angle_rad = np.deg2rad(i) x1, y1 = np.cos(angle_rad) * 0.4, np.sin(angle_rad) * 0.4 x2, y2 = np.cos(angle_rad) * 0.6, np.sin(angle_rad) * 0.6 ax.plot([x1, x2], [y1, y2], color=log_blue, lw=3) # Increased line width
# Overlay central emblem ax.text(0, -.185, "✦", fontsize=200, fontweight='bold', ha='center', va='center', color=enhanced_gold)
# Decorative radial lines for an artistic touch in navy blue with thicker lines for i in range(0, 360, 15): angle_rad = np.deg2rad(i) x1, y1 = np.cos(angle_rad) * 0.65, np.sin(angle_rad) * 0.65 x2, y2 = np.cos(angle_rad) * 0.85, np.sin(angle_rad) * 0.85 ax.plot([x1, x2], [y1, y2], color=darker_blue, lw=1.5) # Increased line width
# Detailing in gold for elegance for x, y in [(0.68, 0.68), (-0.68, 0.68), (-0.7, -0.7), (0.7, -0.7)]: ax.text(x, y, "✷", fontsize=16, fontweight='bold', ha='center', va='center', color=enhanced_gold)
# Display the refined design with improved contrast and line thickness plt.show()