Skip to content

Commit

Permalink
Use a very small ammount of SVG to draw some vector line art on the
Browse files Browse the repository at this point in the history
internal layout of kn5000
  • Loading branch information
felipesanches committed Aug 1, 2024
1 parent 6f8c624 commit 63b20d9
Showing 1 changed file with 25 additions and 19 deletions.
44 changes: 25 additions & 19 deletions src/mame/layout/kn5000.lay
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,15 @@ license:CC0-1.0

<!-- define elements -->

<element name="cpanel"><image file="kn5000_cpanel.png"/></element>
<element name="vector_art">
<image><data><![CDATA[
<svg width="1280" height="640" viewBox="0 0 338.6 169.3">
<g transform="translate(47.95,-15.32)">
<path style="stroke:#222;stroke-width:0.2;" d="m 189.36,21.12 v 5.13 m 0.69,-5.17 v 5.20 M 51.92,21.12 v 5.13 m 0.69,-5.17 v 5.20 m 125.41,-2.17 -0.03,2.19 h 1.67 l -0.66,-2.18 -0.97,-0 z M 69.13,165.59 c -0.21,1.74 -0.34,3.5 -0.38,5.26 0.036,1.76 0.16,3.51 0.38,5.26 H 172.72 c 0.21,-1.74 0.34,-3.5 0.38,-5.26 -0,-1.76 -0.09,-3.51 -0.27,-5.26 h -41.75 c -3.15,2.10 -6.85,3.23 -10.63,3.23 -3.78,-0 -7.48,-1.13 -10.63,-3.23 z M 290.58,26.85 C 258.15,24.17 225.69,21.81 193.14,21.16 H 49.61 c -32.55,0.44 -65,3.19 -97.44,5.7 m 0,101.11 H 290.58 m -83.17,0.03 -7.89,-96.95 c -0.21,-2.62 -2.11,-4.74 -4.74,-4.74 H 47.6 c -2.62,0 -4.54,2.1 -4.74,4.74 l -7.1,96.95" />
<path style="fill:#cba47d" d="m 184,28 v 0.6 h -3 v 0.46 h 5.43 v -0.3 l -1.82,-0.73 z M -32.27,74.75 c -0.1,0 -0.09,0.06 -0.09,0.13 v 1.92 c 0,0 -0.05,0 -0.09,0 -0.29,-0.02 -0.61,0.2 -0.64,0.5 -0.03,0.24 0.22,0.44 0.45,0.41 0.29,-0.03 0.5,-0.32 0.46,-0.61 v -1.52 c 0.02,-0.02 0.06,0.03 0.08,0.03 0.23,0.14 0.43,0.36 0.45,0.65 0.02,0.22 -0.05,0.44 -0.13,0.64 0.25,-0.31 0.33,-0.76 0.16,-1.13 -0.09,-0.21 -0.29,-0.34 -0.4,-0.54 a 1.08,1.08 0 0 1 -0.16,-0.44 c -0.02,-0.03 -0.06,-0.04 -0.09,-0.04 z m 54.37,105 0.97,2.56 1.07,-2.6 z m 44.4,0 0.97,2.56 1.07,-2.56 z m 54.5,0 0.97,2.6 1.1,-2.6 z" />
</g></svg>
]]></data></image>
</element>

<element name="red_led" defstate="0">
<disk state="1">
Expand Down Expand Up @@ -62,8 +70,6 @@ license:CC0-1.0
<rect><color red="0.79" green="0.64" blue="0.49" /></rect>
</element>

<element name="down_arrow"><text string="&#x25BC;"><color red="0.79" green="0.64" blue="0.49" /></text></element>

<element name="screen_border">
<rect><color red="0.05" green="0.05" blue="0.05"/></rect>
</element>
Expand All @@ -81,6 +87,8 @@ license:CC0-1.0
<element name="msp_5_text"><text string="5"><color red="0.79" green="0.64" blue="0.49" /></text></element>
<element name="msp_6_text"><text string="6"><color red="0.79" green="0.64" blue="0.49" /></text></element>

<element name="screen_display_angle_text1"><text string="DISPLAY"><color red="0.79" green="0.64" blue="0.49" /></text></element>
<element name="screen_display_angle_text2"><text string=" ANGLE "><color red="0.79" green="0.64" blue="0.49" /></text></element>
<element name="screen_contrast_text"><text string="CONTRAST"><color red="0.79" green="0.64" blue="0.49" /></text></element>
<element name="screen_help_text"><text string="HELP"><color red="0.79" green="0.64" blue="0.49" /></text></element>
<element name="screen_other_parts_text1"><text string=" OTHER "><color red="0.79" green="0.64" blue="0.49" /></text></element>
Expand Down Expand Up @@ -271,13 +279,13 @@ license:CC0-1.0

<!-- build screen -->

<view name="External Layout">
<view name="Internal Layout">
<bounds left="0" right="1280" top="0" bottom="640"/>
<element ref="vector_art"><bounds left="0" right="1280" top="0" bottom="640"/></element>
<element ref="screen_border"><bounds x="449" y="63" width="380" height="275"/></element>
<screen index="0"><bounds x="480" y="82" width="320" height="240"/></screen>


<!-- Buttons and LEDs -->
<!-- Buttons and LEDs -->

<element name="screen_button_left_1" ref="dark_grey_button" inputtag="CPL_SEG10" inputmask="0x02"><bounds x="394" y="108" width="36" height="21"/></element>
<element name="screen_button_left_2" ref="dark_grey_button" inputtag="CPL_SEG10" inputmask="0x01"><bounds x="394" y="150" width="36" height="21"/></element>
Expand Down Expand Up @@ -444,9 +452,9 @@ license:CC0-1.0
<element name="intro_n_ending_2" ref="dark_grey_button" inputtag="CPL_SEG2" inputmask="0x08"><bounds x="555" y="571" width="30" height="34"/></element>
<element name="CPL_36" ref="red_led"><!-- INTRO & ENDING 2 --><bounds x="569" y="558" width="5" height="5"/></element>

<element name="CPL_37" ref="red_led"><!-- SPLIT POINT INDICATOR (LEFT) --><bounds x="266" y="607" width="5" height="5"/></element>
<element name="CPL_38" ref="red_led"><!-- SPLIT POINT INDICATOR (CENTER) --><bounds x="434" y="607" width="5" height="5"/></element>
<element name="CPL_39" ref="red_led"><!-- SPLIT POINT INDICATOR (RIGHT) --><bounds x="640" y="607" width="5" height="5"/></element>
<element name="CPL_37" ref="red_led"><!-- SPLIT POINT INDICATOR (LEFT) --><bounds x="266" y="612" width="5" height="5"/></element>
<element name="CPL_38" ref="red_led"><!-- SPLIT POINT INDICATOR (CENTER) --><bounds x="434" y="612" width="5" height="5"/></element>
<element name="CPL_39" ref="red_led"><!-- SPLIT POINT INDICATOR (RIGHT) --><bounds x="640" y="612" width="5" height="5"/></element>
<element name="CPL_40" ref="green_led"><!-- TEMPO/PROGRAM --><bounds x="636" y="448" width="5" height="5"/></element>

<element name="CPL_49" ref="red_led"><!-- OTHER PARTS/TR --><bounds x="430" y="354" width="5" height="5"/></element>
Expand Down Expand Up @@ -632,8 +640,7 @@ license:CC0-1.0
<element name="CPR_67" ref="green_led"><!-- START/STOP 3 BEAT --><bounds x="716" y="558" width="5" height="5"/></element>
<element name="CPR_68" ref="green_led"><!-- START/STOP 4 BEAT --><bounds x="732" y="558" width="5" height="5"/></element>


<!-- Labels -->
<!-- Labels -->

<element ref="demo_text"><bounds x="34" y="228" width="20" height="8"/></element>

Expand All @@ -652,6 +659,9 @@ license:CC0-1.0
<element ref="msp_5_text"><bounds x="200" y="350" width="6" height="10"/></element>
<element ref="msp_6_text"><bounds x="264" y="350" width="6" height="10"/></element>

<element ref="screen_display_angle_text1"><bounds x="864" y="56" width="22" height="7"/></element>
<element ref="screen_display_angle_text2"><bounds x="864" y="64" width="22" height="7"/></element>

<element ref="screen_contrast_text"><bounds x="329" y="329" width="42" height="7"/></element>
<element ref="dark_grey_button"><bounds x="348" y="338" width="5" height="69"/></element>
<element ref="light_grey_button"><bounds x="346" y="378" width="9" height="9"/></element>
Expand Down Expand Up @@ -781,21 +791,17 @@ license:CC0-1.0
<element ref="intro_n_ending_text"><bounds x="521" y="548" width="64" height="7"/></element>
<element ref="intro_n_ending_text1"><bounds x="540" y="557" width="4" height="7"/></element>
<element ref="intro_n_ending_text2"><bounds x="577" y="557" width="4" height="7"/></element>
<element ref="sequencer_reset_text1"><bounds x="444" y="608" width="30" height="6"/></element>
<element ref="sequencer_reset_text2"><bounds x="444" y="616" width="30" height="6"/></element>
<element ref="count_intro_text1"><bounds x="485" y="608" width="17" height="6"/></element>
<element ref="count_intro_text2"><bounds x="485" y="616" width="17" height="6"/></element>
<element ref="sequencer_reset_text1"><bounds x="444" y="610" width="30" height="6"/></element>
<element ref="sequencer_reset_text2"><bounds x="444" y="618" width="30" height="6"/></element>
<element ref="count_intro_text1"><bounds x="485" y="610" width="17" height="6"/></element>
<element ref="count_intro_text2"><bounds x="485" y="618" width="17" height="6"/></element>

<element ref="start_stop_text"><bounds x="690" y="547" width="50" height="8"/></element>
<element ref="1234beat_text1"><bounds x="692" y="557" width="4" height="7"/></element>
<element ref="1234beat_text2"><bounds x="707" y="557" width="4" height="7"/></element>
<element ref="1234beat_text3"><bounds x="723" y="557" width="4" height="7"/></element>
<element ref="1234beat_text4"><bounds x="739" y="557" width="22" height="7"/></element>

<element ref="down_arrow"><bounds x="264" y="610" width="10" height="16"/></element>
<element ref="down_arrow"><bounds x="432" y="610" width="10" height="16"/></element>
<element ref="down_arrow"><bounds x="638" y="610" width="10" height="16"/></element>

<element ref="synchro_n_break_text1"><bounds x="765" y="539" width="38" height="7"/></element>
<element ref="synchro_n_break_text2"><bounds x="765" y="547" width="38" height="7"/></element>

Expand Down

0 comments on commit 63b20d9

Please sign in to comment.