/** * Related Posts Loader for Astra theme. * * @package Astra * @author Brainstorm Force * @copyright Copyright (c) 2021, Brainstorm Force * @link https://www.brainstormforce.com * @since Astra 3.5.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } /** * Customizer Initialization * * @since 3.5.0 */ class Astra_Related_Posts_Loader { /** * Constructor * * @since 3.5.0 */ public function __construct() { add_filter( 'astra_theme_defaults', array( $this, 'theme_defaults' ) ); add_action( 'customize_register', array( $this, 'related_posts_customize_register' ), 2 ); // Load Google fonts. add_action( 'astra_get_fonts', array( $this, 'add_fonts' ), 1 ); } /** * Enqueue google fonts. * * @return void */ public function add_fonts() { if ( astra_target_rules_for_related_posts() ) { // Related Posts Section title. $section_title_font_family = astra_get_option( 'related-posts-section-title-font-family' ); $section_title_font_weight = astra_get_option( 'related-posts-section-title-font-weight' ); Astra_Fonts::add_font( $section_title_font_family, $section_title_font_weight ); // Related Posts - Posts title. $post_title_font_family = astra_get_option( 'related-posts-title-font-family' ); $post_title_font_weight = astra_get_option( 'related-posts-title-font-weight' ); Astra_Fonts::add_font( $post_title_font_family, $post_title_font_weight ); // Related Posts - Meta Font. $meta_font_family = astra_get_option( 'related-posts-meta-font-family' ); $meta_font_weight = astra_get_option( 'related-posts-meta-font-weight' ); Astra_Fonts::add_font( $meta_font_family, $meta_font_weight ); // Related Posts - Content Font. $content_font_family = astra_get_option( 'related-posts-content-font-family' ); $content_font_weight = astra_get_option( 'related-posts-content-font-weight' ); Astra_Fonts::add_font( $content_font_family, $content_font_weight ); } } /** * Set Options Default Values * * @param array $defaults Astra options default value array. * @return array */ public function theme_defaults( $defaults ) { // Related Posts. $defaults['enable-related-posts'] = false; $defaults['related-posts-title'] = __( 'Related Posts', 'astra' ); $defaults['releted-posts-title-alignment'] = 'left'; $defaults['related-posts-total-count'] = 2; $defaults['enable-related-posts-excerpt'] = false; $defaults['related-posts-excerpt-count'] = 25; $defaults['related-posts-based-on'] = 'categories'; $defaults['related-posts-order-by'] = 'date'; $defaults['related-posts-order'] = 'asc'; $defaults['related-posts-grid-responsive'] = array( 'desktop' => '2-equal', 'tablet' => '2-equal', 'mobile' => 'full', ); $defaults['related-posts-structure'] = array( 'featured-image', 'title-meta', ); $defaults['related-posts-meta-structure'] = array( 'comments', 'category', 'author', ); // Related Posts - Color styles. $defaults['related-posts-text-color'] = ''; $defaults['related-posts-link-color'] = ''; $defaults['related-posts-title-color'] = ''; $defaults['related-posts-background-color'] = ''; $defaults['related-posts-meta-color'] = ''; $defaults['related-posts-link-hover-color'] = ''; $defaults['related-posts-meta-link-hover-color'] = ''; // Related Posts - Title typo. $defaults['related-posts-section-title-font-family'] = 'inherit'; $defaults['related-posts-section-title-font-weight'] = 'inherit'; $defaults['related-posts-section-title-text-transform'] = ''; $defaults['related-posts-section-title-line-height'] = ''; $defaults['related-posts-section-title-font-size'] = array( 'desktop' => '30', 'tablet' => '', 'mobile' => '', 'desktop-unit' => 'px', 'tablet-unit' => 'px', 'mobile-unit' => 'px', ); // Related Posts - Title typo. $defaults['related-posts-title-font-family'] = 'inherit'; $defaults['related-posts-title-font-weight'] = 'inherit'; $defaults['related-posts-title-text-transform'] = ''; $defaults['related-posts-title-line-height'] = '1'; $defaults['related-posts-title-font-size'] = array( 'desktop' => '20', 'tablet' => '', 'mobile' => '', 'desktop-unit' => 'px', 'tablet-unit' => 'px', 'mobile-unit' => 'px', ); // Related Posts - Meta typo. $defaults['related-posts-meta-font-family'] = 'inherit'; $defaults['related-posts-meta-font-weight'] = 'inherit'; $defaults['related-posts-meta-text-transform'] = ''; $defaults['related-posts-meta-line-height'] = ''; $defaults['related-posts-meta-font-size'] = array( 'desktop' => '14', 'tablet' => '', 'mobile' => '', 'desktop-unit' => 'px', 'tablet-unit' => 'px', 'mobile-unit' => 'px', ); // Related Posts - Content typo. $defaults['related-posts-content-font-family'] = 'inherit'; $defaults['related-posts-content-font-weight'] = 'inherit'; $defaults['related-posts-content-text-transform'] = ''; $defaults['related-posts-content-line-height'] = ''; $defaults['related-posts-content-font-size'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', 'desktop-unit' => 'px', 'tablet-unit' => 'px', 'mobile-unit' => 'px', ); return $defaults; } /** * Add postMessage support for site title and description for the Theme Customizer. * * @param WP_Customize_Manager $wp_customize Theme Customizer object. * * @since 3.5.0 */ public function related_posts_customize_register( $wp_customize ) { /** * Register Config control in Related Posts. */ // @codingStandardsIgnoreStart WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound require_once ASTRA_RELATED_POSTS_DIR . 'customizer/class-astra-related-posts-configs.php'; // @codingStandardsIgnoreEnd WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound } /** * Render the Related Posts title for the selective refresh partial. * * @since 3.5.0 */ public function render_related_posts_title() { return astra_get_option( 'related-posts-title' ); } } /** * Kicking this off by creating NEW instace. */ new Astra_Related_Posts_Loader(); The Mathematical Heart of Starburst: Symmetry and Structure – Quality Formación

The Mathematical Heart of Starburst: Symmetry and Structure

Starburst embodies a profound fusion of mathematical order and visual abundance, where symmetry and mass converge to create a striking aesthetic experience. At its core lies the dihedral group D₈, a mathematical structure governing 8-fold rotational and reflective symmetry. With 16 distinct operations—8 rotations and 8 reflections—D₈ defines the balanced repetition and radial harmony visible in Starburst’s design. This symmetry is not merely decorative; it governs every layer of its visual architecture, from angular spacing to radial distribution.

How Group Operations Govern Balance and Repetition

The dihedral group D₈ operates as a formal language for symmetry, enabling precise control over Starburst’s radial composition. Each rotation by 45 degrees (360°/8) preserves the pattern’s core, while reflections across 8 axes ensure mirrored balance. These operations generate a structure where every element aligns predictably, reducing visual noise and enhancing coherence. Group theory explains how these transformations compose to maintain order, turning Starburst into a seamless, repeating visual field that feels both infinite and contained.

Shannon’s Entropy and Information in Visual Patterns

Shannon’s entropy, defined as H = -Σ p(i) log₂ p(i), quantifies unpredictability in patterns. In Starburst’s design, high symmetry implies low entropy—each element is highly predictable and repeatable, creating visual stability. Yet, the pattern’s complexity arises not from randomness but from structured variation. The interplay between predictable symmetry and nuanced radial gradients generates a rich information density: viewers perceive order, but subtle asymmetries and color shifts sustain interest, balancing familiarity with visual richness.

Concept Application in Starburst
Entropy (H) Low entropy due to rotational symmetry; entropy balances predictability with subtle variation
Visual Information Density High order from symmetry enhances perceptual clarity; gradients and color shifts increase effective information
Entropy Value Estimate Approximate H ≈ 2.3 bits per pixel, reflecting constrained unpredictability within rigid symmetry
Information Density Multi-layer radial color gradients and angular positioning yield high effective density despite low raw entropy

Visualizing Symmetry: The Starburst JSON Representation

Structured data models Starburst’s geometry through JSON, encoding symmetry and mass distribution precisely. Each visual element maps to nested fields reflecting dihedral operations: angles define rotational increments, radii control radial spread, and color gradients encode positional hierarchy. For example, a radial burst might store:

  • angles: [0, 45, 90, …, 315] degrees
  • radii: [0.1, 0.3, 0.5, …, 1.0] for layered mass
  • colors: [hsl(30, 70%, p), hsl(60, 70%, p), …] to simulate depth

This encoding translates abstract group operations into computable design rules, enabling dynamic generation and precise replication.

From Abstract Algebra to Physical Form: The Starburst Phenomenon

Starburst is a tangible realization of D₈’s symmetry—manifesting as layered visual bursts radiating mass. Each symmetry operation translates into a physical layer: rotations align radial strata, reflections distribute color intensity across axes, and reflections create mirrored mass concentrations. In real-world applications—such as casino graphics or digital art—this structured symmetry amplifies presence, making Starburst not just a pattern but a symbol of controlled visual power.

Beyond Geometry: The Conceptual Bridge Between Symmetry and Mass

Symmetry enhances perception by reducing cognitive load; viewers process balanced forms faster and associate them with stability and abundance. Starburst leverages this psychological effect: its radial symmetry triggers an intuitive sense of fullness, while the mass distribution—modeled through layered radii and color density—evokes material presence. Entropy ensures the design remains visually engaging: predictability grounds the viewer, while subtle variation sustains attention. Together, symmetry and entropy create a harmonious tension that defines Starburst’s aesthetic impact.

The Deeper Insight: Starburst as a Living Example of Mathematical Aesthetics

Starburst exemplifies how group theory and information theory collaborate to produce visual harmony. Group operations formalize symmetry, enabling precise control; Shannon’s entropy guides the balance between order and richness. This synergy explains why symmetry amplifies perceived mass—structured repetition fosters confidence in form—while entropy preserves dynamism. For designers, artists, and scientists, Starburst illustrates how mathematical principles manifest as experiential beauty, where symmetry meets physical presence in perfect alignment.

The fusion of symmetry and mass in Starburst is not just a visual triumph—it’s a testament to the power of mathematical abstraction in shaping human experience.

  1. Group theory defines Starburst’s radial order through D₈’s 16 operations.
  2. Shannon’s entropy quantifies its predictable yet rich visual texture.
  3. JSON encoding translates symmetry into scalable, editable design logic.
  4. Balance between low entropy and strategic variation sustains visual engagement.

Explore Starburst’s gambling game | where symmetry meets physical presence

monopoly casino