module vgaSystem(
    input clk,
    output Hsync,
    output Vsync,
    output [3:0] vgaRed,
    output [3:0] vgaGreen,
    output [3:0] vgaBlue
    );
    
    wire line_clk;
    wire [15:0] h_val, v_val;
    
    hsync hs(clk, line_clk, h_val);
    vsync vs(clk, line_clk, v_val);
    
    assign Hsync = (h_val < 687) ? 1 : 0;
    assign Vsync = (v_val < 511) ? 1 : 0;
    
    assign {vgaRed, vgaGreen, vgaBlue} = ((h_val-367)**2 + (v_val-273)**2 <= 100**2) ? 12'hfff : 12'h000;
endmodule