mirror of
https://github.com/trebonian/visual6502.git
synced 2024-12-21 21:29:16 +00:00
Changed chip layout to use SVGs
This commit is contained in:
parent
de265ecdb8
commit
ae185ff06b
2
6502N.svg
Normal file
2
6502N.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 2.6 MiB |
@ -72,7 +72,7 @@ More information in the <a href="http://visual6502.org/wiki/index.php?title=Jssi
|
||||
</span>
|
||||
<div class="frame" id="frame">
|
||||
<div class="chip" id="chip">
|
||||
<canvas class="chip" id="chipbg"></canvas>
|
||||
<object data="6502N.svg" type="image/svg+xml" id="chipbg" style="position: absolute; width: 600px; height:600px;"></object>
|
||||
<canvas class="chip" id="overlay"></canvas>
|
||||
<canvas class="chip" id="hilite"></canvas>
|
||||
<canvas class="chip" id="hitbuffer"></canvas>
|
||||
|
@ -50,6 +50,13 @@ canvas.chip {
|
||||
height: 600px;
|
||||
}
|
||||
|
||||
object.chipbg {
|
||||
position: absolute;
|
||||
width: 600px;
|
||||
height: 600px;
|
||||
}
|
||||
|
||||
|
||||
div.buttons{
|
||||
position: absolute;
|
||||
top: -5px;
|
||||
|
13
wires.js
13
wires.js
@ -73,8 +73,9 @@ function setupLayerVisibility(){
|
||||
|
||||
function setupBackground(){
|
||||
chipbg = document.getElementById('chipbg');
|
||||
chipbg.width = grCanvasSize;
|
||||
chipbg.height = grCanvasSize;
|
||||
chipbg.width = 4000;
|
||||
chipbg.height = 4000;
|
||||
return;
|
||||
var ctx = chipbg.getContext('2d');
|
||||
ctx.fillStyle = '#000000';
|
||||
ctx.strokeStyle = 'rgba(255,255,255,0.5)';
|
||||
@ -137,10 +138,10 @@ function hexdigit(n){return '0123456789ABCDEF'.charAt(n);}
|
||||
|
||||
function refresh(){
|
||||
if(!chipLayoutIsVisible) return;
|
||||
ctx.clearRect(0,0,grCanvasSize,grCanvasSize);
|
||||
for(i in nodes){
|
||||
if(isNodeHigh(i)) overlayNode(nodes[i].segs);
|
||||
}
|
||||
// ctx.clearRect(0,0,grCanvasSize,grCanvasSize);
|
||||
// for(i in nodes){
|
||||
// if(isNodeHigh(i)) overlayNode(nodes[i].segs);
|
||||
// }
|
||||
hiliteNode(hilited);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user