Data update
This commit is contained in:
parent
5150844a7d
commit
4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions
|
|
@ -47,7 +47,7 @@ szTexte2: .asciz "Press q for close window or clic X in system me
|
|||
szLibDW: .asciz "WM_DELETE_WINDOW" @ special label for correct close error
|
||||
|
||||
/*************************************************/
|
||||
szMessErr: .ascii "Error code hexa : "
|
||||
szMessErr: .ascii "Error code hexa : "
|
||||
sHexa: .space 9,' '
|
||||
.ascii " decimal : "
|
||||
sDeci: .space 15,' '
|
||||
|
|
@ -441,7 +441,7 @@ conversion16:
|
|||
and r0,r3,r4 @value register and mask
|
||||
lsr r0,r2 @ move right
|
||||
cmp r0,#10 @ compare value
|
||||
addlt r0,#48 @ <10 ->digit
|
||||
addlt r0,#48 @ <10 ->digit
|
||||
addge r0,#55 @ >10 ->letter A-F
|
||||
strb r0,[r1],#1 @ store digit on area and + 1 in area address
|
||||
lsr r4,#4 @ shift mask 4 positions
|
||||
|
|
@ -507,7 +507,7 @@ divisionpar10U:
|
|||
sub r1,r4,r2, lsl #1 @ r1 <- r4 - (r2 * 2) = r4 - (r0 * 10)
|
||||
pop {r2,r3,r4,lr}
|
||||
bx lr @ leave function
|
||||
iMagicNumber: .int 0xCCCCCCCD
|
||||
iMagicNumber: .int 0xCCCCCCCD
|
||||
/***************************************************/
|
||||
/* integer division unsigned */
|
||||
/***************************************************/
|
||||
|
|
|
|||
|
|
@ -1,47 +0,0 @@
|
|||
with SDL.Video.Windows.Makers;
|
||||
with SDL.Video.Renderers.Makers;
|
||||
with SDL.Events.Events;
|
||||
|
||||
procedure Draw_A_Pixel is
|
||||
|
||||
Width : constant := 320;
|
||||
Height : constant := 200;
|
||||
|
||||
Window : SDL.Video.Windows.Window;
|
||||
Renderer : SDL.Video.Renderers.Renderer;
|
||||
|
||||
procedure Wait is
|
||||
use type SDL.Events.Event_Types;
|
||||
Event : SDL.Events.Events.Events;
|
||||
begin
|
||||
loop
|
||||
while SDL.Events.Events.Poll (Event) loop
|
||||
if Event.Common.Event_Type = SDL.Events.Quit then
|
||||
return;
|
||||
end if;
|
||||
end loop;
|
||||
delay 0.100;
|
||||
end loop;
|
||||
end Wait;
|
||||
|
||||
begin
|
||||
if not SDL.Initialise (Flags => SDL.Enable_Screen) then
|
||||
return;
|
||||
end if;
|
||||
|
||||
SDL.Video.Windows.Makers.Create (Win => Window,
|
||||
Title => "Draw a pixel",
|
||||
Position => SDL.Natural_Coordinates'(X => 10, Y => 10),
|
||||
Size => SDL.Positive_Sizes'(Width, Height),
|
||||
Flags => 0);
|
||||
SDL.Video.Renderers.Makers.Create (Renderer, Window.Get_Surface);
|
||||
Renderer.Set_Draw_Colour ((0, 0, 0, 255));
|
||||
Renderer.Fill (Rectangle => (0, 0, Width, Height));
|
||||
Renderer.Set_Draw_Colour ((255, 0, 0, 255));
|
||||
Renderer.Draw (Point => (100, 100));
|
||||
Window.Update_Surface;
|
||||
|
||||
Wait;
|
||||
Window.Finalize;
|
||||
SDL.Finalise;
|
||||
end Draw_A_Pixel;
|
||||
|
|
@ -4,9 +4,9 @@ Gui, Show, w320 h240, Example
|
|||
return
|
||||
|
||||
CreatePixel(Color, Handle) {
|
||||
VarSetCapacity(BMBITS, 4, 0), Numput("0x" . Color, &BMBITS, 0, "UInt")
|
||||
hBM := DllCall("Gdi32.dll\CreateBitmap", "Int", 1, "Int", 1, "UInt", 1, "UInt", 24, "Ptr", 0, "Ptr")
|
||||
hBM := DllCall("User32.dll\CopyImage", "Ptr", hBM, "UInt", 0, "Int", 0, "Int", 0, "UInt", 0x2008, "Ptr")
|
||||
DllCall("Gdi32.dll\SetBitmapBits", "Ptr", hBM, "UInt", 3, "Ptr", &BMBITS)
|
||||
DllCall("User32.dll\SendMessage", "Ptr", Handle, "UInt", 0x172, "Ptr", 0, "Ptr", hBM)
|
||||
VarSetCapacity(BMBITS, 4, 0), Numput("0x" . Color, &BMBITS, 0, "UInt")
|
||||
hBM := DllCall("Gdi32.dll\CreateBitmap", "Int", 1, "Int", 1, "UInt", 1, "UInt", 24, "Ptr", 0, "Ptr")
|
||||
hBM := DllCall("User32.dll\CopyImage", "Ptr", hBM, "UInt", 0, "Int", 0, "Int", 0, "UInt", 0x2008, "Ptr")
|
||||
DllCall("Gdi32.dll\SetBitmapBits", "Ptr", hBM, "UInt", 3, "Ptr", &BMBITS)
|
||||
DllCall("User32.dll\SendMessage", "Ptr", Handle, "UInt", 0x172, "Ptr", 0, "Ptr", hBM)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,11 +2,11 @@
|
|||
|
||||
int main()
|
||||
{
|
||||
initwindow(320,240,"Red Pixel");
|
||||
|
||||
putpixel(100,100,RED);
|
||||
|
||||
getch();
|
||||
|
||||
return 0;
|
||||
initwindow(320,240,"Red Pixel");
|
||||
|
||||
putpixel(100,100,RED);
|
||||
|
||||
getch();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,66 +6,66 @@
|
|||
|
||||
int
|
||||
main(void)
|
||||
{
|
||||
Atom wm_both_protocols[1];
|
||||
Atom wm_delete;
|
||||
Atom wm_protocols;
|
||||
Display *display;
|
||||
GC gc;
|
||||
Window root;
|
||||
Window window;
|
||||
XEvent event;
|
||||
XSetWindowAttributes attr;
|
||||
int more = 1;
|
||||
{
|
||||
Atom wm_both_protocols[1];
|
||||
Atom wm_delete;
|
||||
Atom wm_protocols;
|
||||
Display *display;
|
||||
GC gc;
|
||||
Window root;
|
||||
Window window;
|
||||
XEvent event;
|
||||
XSetWindowAttributes attr;
|
||||
int more = 1;
|
||||
|
||||
display = XOpenDisplay(NULL);
|
||||
if(display == NULL)
|
||||
{
|
||||
fprintf(stderr,"Error: The display cannot be opened\n");
|
||||
exit(1);
|
||||
}
|
||||
root = DefaultRootWindow(display);
|
||||
wm_delete = XInternAtom(display, "WM_DELETE_WINDOW", False);
|
||||
wm_protocols = XInternAtom(display, "WM_PROTOCOLS", False);
|
||||
attr.background_pixel = 0x000000;
|
||||
attr.event_mask = ExposureMask;
|
||||
window = XCreateWindow(display, root,
|
||||
0, 0, 320, 240, 0,
|
||||
CopyFromParent, InputOutput, CopyFromParent,
|
||||
CWBackPixel | CWEventMask,
|
||||
&attr
|
||||
);
|
||||
XStoreName(display, window, "Draw a Pixel");
|
||||
wm_both_protocols[0] = wm_delete;
|
||||
XSetWMProtocols(display, window, wm_both_protocols, 1);
|
||||
gc = XCreateGC(display, window, 0, NULL);
|
||||
XSetForeground(display, gc, 0xFF0000);
|
||||
XMapWindow(display, window);
|
||||
display = XOpenDisplay(NULL);
|
||||
if(display == NULL)
|
||||
{
|
||||
fprintf(stderr,"Error: The display cannot be opened\n");
|
||||
exit(1);
|
||||
}
|
||||
root = DefaultRootWindow(display);
|
||||
wm_delete = XInternAtom(display, "WM_DELETE_WINDOW", False);
|
||||
wm_protocols = XInternAtom(display, "WM_PROTOCOLS", False);
|
||||
attr.background_pixel = 0x000000;
|
||||
attr.event_mask = ExposureMask;
|
||||
window = XCreateWindow(display, root,
|
||||
0, 0, 320, 240, 0,
|
||||
CopyFromParent, InputOutput, CopyFromParent,
|
||||
CWBackPixel | CWEventMask,
|
||||
&attr
|
||||
);
|
||||
XStoreName(display, window, "Draw a Pixel");
|
||||
wm_both_protocols[0] = wm_delete;
|
||||
XSetWMProtocols(display, window, wm_both_protocols, 1);
|
||||
gc = XCreateGC(display, window, 0, NULL);
|
||||
XSetForeground(display, gc, 0xFF0000);
|
||||
XMapWindow(display, window);
|
||||
|
||||
while(more)
|
||||
{
|
||||
XNextEvent(display, &event);
|
||||
switch(event.type)
|
||||
{
|
||||
case Expose:
|
||||
XDrawPoint(display, window, gc, 100, 100);
|
||||
break;
|
||||
while(more)
|
||||
{
|
||||
XNextEvent(display, &event);
|
||||
switch(event.type)
|
||||
{
|
||||
case Expose:
|
||||
XDrawPoint(display, window, gc, 100, 100);
|
||||
break;
|
||||
|
||||
case ClientMessage: // for close request from WM
|
||||
if(event.xclient.window == window &&
|
||||
event.xclient.message_type == wm_protocols &&
|
||||
event.xclient.format == 32 &&
|
||||
event.xclient.data.l[0] == wm_delete)
|
||||
{
|
||||
more = 0;
|
||||
}
|
||||
break;
|
||||
case ClientMessage: // for close request from WM
|
||||
if(event.xclient.window == window &&
|
||||
event.xclient.message_type == wm_protocols &&
|
||||
event.xclient.format == 32 &&
|
||||
event.xclient.data.l[0] == wm_delete)
|
||||
{
|
||||
more = 0;
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
printf("unexpected event.type %d\n", event.type);;
|
||||
}
|
||||
}
|
||||
default:
|
||||
printf("unexpected event.type %d\n", event.type);;
|
||||
}
|
||||
}
|
||||
|
||||
XCloseDisplay(display);
|
||||
exit(0);
|
||||
}
|
||||
XCloseDisplay(display);
|
||||
exit(0);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
\ Bindings to SDL2 functions
|
||||
s" SDL2" add-lib
|
||||
\c #include <SDL2/SDL.h>
|
||||
c-function sdl-init SDL_Init n -- n
|
||||
c-function sdl-quit SDL_Quit -- void
|
||||
c-function sdl-createwindow SDL_CreateWindow a n n n n n -- a
|
||||
c-function sdl-createrenderer SDL_CreateRenderer a n n -- a
|
||||
c-function sdl-setdrawcolor SDL_SetRenderDrawColor a n n n n -- n
|
||||
c-function sdl-drawpoint SDL_RenderDrawPoint a n n -- n
|
||||
c-function sdl-renderpresent SDL_RenderPresent a -- void
|
||||
c-function sdl-init SDL_Init n -- n
|
||||
c-function sdl-quit SDL_Quit -- void
|
||||
c-function sdl-createwindow SDL_CreateWindow a n n n n n -- a
|
||||
c-function sdl-createrenderer SDL_CreateRenderer a n n -- a
|
||||
c-function sdl-setdrawcolor SDL_SetRenderDrawColor a n n n n -- n
|
||||
c-function sdl-drawpoint SDL_RenderDrawPoint a n n -- n
|
||||
c-function sdl-renderpresent SDL_RenderPresent a -- void
|
||||
c-function sdl-delay SDL_Delay n -- void
|
||||
|
||||
: pixel ( -- )
|
||||
|
|
|
|||
|
|
@ -1,22 +1,22 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"image"
|
||||
"image/color"
|
||||
"image/draw"
|
||||
"image/png"
|
||||
"os"
|
||||
"image"
|
||||
"image/color"
|
||||
"image/draw"
|
||||
"image/png"
|
||||
"os"
|
||||
)
|
||||
|
||||
func main() {
|
||||
// Create a 320 x 240 image
|
||||
img := image.NewRGBA(image.Rect(0, 0, 320, 240))
|
||||
// fill img in white
|
||||
draw.Draw(img, img.Bounds(), &image.Uniform{color.RGBA{0, 0, 0, 0}}, image.ZP, draw.Src)
|
||||
// Draw a red dot at (100, 100)
|
||||
img.Set(100, 100, color.RGBA{255, 0, 0, 255})
|
||||
// Save to new.png
|
||||
w, _ := os.OpenFile("new.png", os.O_WRONLY|os.O_CREATE, 0600)
|
||||
defer w.Close()
|
||||
png.Encode(w, img)
|
||||
// Create a 320 x 240 image
|
||||
img := image.NewRGBA(image.Rect(0, 0, 320, 240))
|
||||
// fill img in white
|
||||
draw.Draw(img, img.Bounds(), &image.Uniform{color.RGBA{0, 0, 0, 0}}, image.ZP, draw.Src)
|
||||
// Draw a red dot at (100, 100)
|
||||
img.Set(100, 100, color.RGBA{255, 0, 0, 255})
|
||||
// Save to new.png
|
||||
w, _ := os.OpenFile("new.png", os.O_WRONLY|os.O_CREATE, 0600)
|
||||
defer w.Close()
|
||||
png.Encode(w, img)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ package main
|
|||
import "github.com/zserge/webview"
|
||||
|
||||
func main() {
|
||||
// Open wikipedia in a 320*240 resizable window
|
||||
webview.Open("Minimal webview example",
|
||||
"https://en.m.wikipedia.org/wiki/Main_Page", 320, 240, true)
|
||||
// Open wikipedia in a 320*240 resizable window
|
||||
webview.Open("Minimal webview example",
|
||||
"https://en.m.wikipedia.org/wiki/Main_Page", 320, 240, true)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,18 +3,18 @@ import java.awt.Graphics;
|
|||
import javax.swing.JFrame;
|
||||
|
||||
public class DrawAPixel extends JFrame{
|
||||
public DrawAPixel() {
|
||||
super("Red Pixel");
|
||||
setSize(320, 240);
|
||||
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||
setVisible(true);
|
||||
}
|
||||
@Override
|
||||
public void paint(Graphics g) {
|
||||
g.setColor(new Color(255, 0, 0));
|
||||
g.drawRect(100, 100, 1, 1);
|
||||
}
|
||||
public static void main(String[] args) {
|
||||
new DrawAPixel();
|
||||
}
|
||||
public DrawAPixel() {
|
||||
super("Red Pixel");
|
||||
setSize(320, 240);
|
||||
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||
setVisible(true);
|
||||
}
|
||||
@Override
|
||||
public void paint(Graphics g) {
|
||||
g.setColor(new Color(255, 0, 0));
|
||||
g.drawRect(100, 100, 1, 1);
|
||||
}
|
||||
public static void main(String[] args) {
|
||||
new DrawAPixel();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,30 +4,30 @@ import java.awt.image.BufferedImage;
|
|||
import javax.swing.JFrame;
|
||||
import javax.swing.JPanel;
|
||||
|
||||
public class DrawAPixel extends JPanel{
|
||||
private BufferedImage puffer;
|
||||
private JFrame window;
|
||||
private Graphics g;
|
||||
public DrawAPixel() {
|
||||
window = new JFrame("Red Pixel");
|
||||
window.setSize(320, 240);
|
||||
window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||
window.setLayout(null);
|
||||
setBounds(0, 0, 320, 240);
|
||||
window.add(this);
|
||||
window.setVisible(true);
|
||||
}
|
||||
@Override
|
||||
public void paint(Graphics gr) {
|
||||
if(g == null) {
|
||||
puffer = (BufferedImage) createImage(getWidth(), getHeight());
|
||||
g = puffer.getGraphics();
|
||||
}
|
||||
g.setColor(new Color(255, 0, 0));
|
||||
g.drawRect(100, 100, 1, 1);
|
||||
gr.drawImage(puffer, 0, 0, this);
|
||||
}
|
||||
public static void main(String[] args) {
|
||||
new DrawAPixel();
|
||||
}
|
||||
public class DrawAPixel extends JPanel{
|
||||
private BufferedImage puffer;
|
||||
private JFrame window;
|
||||
private Graphics g;
|
||||
public DrawAPixel() {
|
||||
window = new JFrame("Red Pixel");
|
||||
window.setSize(320, 240);
|
||||
window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||
window.setLayout(null);
|
||||
setBounds(0, 0, 320, 240);
|
||||
window.add(this);
|
||||
window.setVisible(true);
|
||||
}
|
||||
@Override
|
||||
public void paint(Graphics gr) {
|
||||
if(g == null) {
|
||||
puffer = (BufferedImage) createImage(getWidth(), getHeight());
|
||||
g = puffer.getGraphics();
|
||||
}
|
||||
g.setColor(new Color(255, 0, 0));
|
||||
g.drawRect(100, 100, 1, 1);
|
||||
gr.drawImage(puffer, 0, 0, this);
|
||||
}
|
||||
public static void main(String[] args) {
|
||||
new DrawAPixel();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,9 +2,9 @@ local SDL = require "SDL"
|
|||
|
||||
local ret = SDL.init { SDL.flags.Video }
|
||||
local window = SDL.createWindow {
|
||||
title = "Pixel",
|
||||
height = 320,
|
||||
width = 240
|
||||
title = "Pixel",
|
||||
height = 320,
|
||||
width = 240
|
||||
}
|
||||
|
||||
local renderer = SDL.createRenderer(window, 0, 0)
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
REM Psion devices up to Series 5 have no colour, so the pixel is black. The Series 7 and later do have colour, but I don't own any of those, so I can neither test it nor am I familiar with OPL beyond Series 5.
|
||||
REM The Series 3 also has a resolution of only 480x160, so the window falls off the screen.
|
||||
|
||||
PROC main:
|
||||
LOCAL wndw%
|
||||
wndw%=gCREATE(80,0,320,240,1,1)
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
MODULE pixel;
|
||||
|
||||
IMPORT XYplane;
|
||||
|
||||
IMPORT XYplane;
|
||||
|
||||
BEGIN
|
||||
XYplane.Open;
|
||||
XYplane.Dot(100, 100, XYplane.draw);
|
||||
REPEAT UNTIL XYplane.Key() = "q"
|
||||
XYplane.Open;
|
||||
XYplane.Dot(100, 100, XYplane.draw);
|
||||
REPEAT UNTIL XYplane.Key() = "q"
|
||||
END pixel.
|
||||
|
|
|
|||
|
|
@ -1,32 +0,0 @@
|
|||
package main
|
||||
|
||||
import "vendor:sdl2"
|
||||
|
||||
main :: proc() {
|
||||
using sdl2
|
||||
|
||||
window: ^Window = ---
|
||||
renderer: ^Renderer = ---
|
||||
event: Event = ---
|
||||
|
||||
Init(INIT_VIDEO)
|
||||
CreateWindowAndRenderer(
|
||||
640, 480,
|
||||
WINDOW_SHOWN,
|
||||
&window, &renderer
|
||||
)
|
||||
|
||||
SetWindowTitle(window, "Empty window")
|
||||
SetRenderDrawColor(renderer, 50, 255, 100, 255)
|
||||
RenderDrawPoint(renderer, 100, 100)
|
||||
RenderPresent(renderer)
|
||||
|
||||
for event.type != .QUIT {
|
||||
Delay(10)
|
||||
PollEvent(&event)
|
||||
}
|
||||
|
||||
DestroyRenderer(renderer)
|
||||
DestroyWindow(window)
|
||||
Quit()
|
||||
}
|
||||
|
|
@ -6,39 +6,39 @@ use X11::Protocol;
|
|||
|
||||
my $x = new X11::Protocol or die "X11 connection failed";
|
||||
$x->CreateWindow(my $id = $x->new_rsrc, $x->root, 'InputOutput',
|
||||
$x->root_depth, 'CopyFromParent',
|
||||
0, 0, 320, 240, 0,
|
||||
background_pixel => 0x000000,
|
||||
event_mask => $x->pack_event_mask( qw( Exposure )),
|
||||
);
|
||||
$x->root_depth, 'CopyFromParent',
|
||||
0, 0, 320, 240, 0,
|
||||
background_pixel => 0x000000,
|
||||
event_mask => $x->pack_event_mask( qw( Exposure )),
|
||||
);
|
||||
$x->ChangeProperty($id, $x->atom('WM_NAME'), $x->atom('STRING'),
|
||||
8, 'Replace', 'Draw a Pixel');
|
||||
8, 'Replace', 'Draw a Pixel');
|
||||
$x->ChangeProperty($id, $x->atom('WM_PROTOCOLS'), $x->atom('ATOM'),
|
||||
32, 'Replace', pack('L', $x->atom('WM_DELETE_WINDOW')));
|
||||
32, 'Replace', pack('L', $x->atom('WM_DELETE_WINDOW')));
|
||||
$x->CreateGC(my $gc = $x->new_rsrc, $id, foreground => 0xff0000);
|
||||
$x->MapWindow($id);
|
||||
$x->event_handler('queue');
|
||||
|
||||
my ($more, $name, %e) = 1;
|
||||
while($more)
|
||||
{
|
||||
%e = $x->next_event;
|
||||
$name = $e{name};
|
||||
EVENT->$name;
|
||||
}
|
||||
{
|
||||
%e = $x->next_event;
|
||||
$name = $e{name};
|
||||
EVENT->$name;
|
||||
}
|
||||
|
||||
sub EVENT::Expose { $x->PolyPoint($id, $gc, 'ORIGIN', 100, 100) }
|
||||
sub EVENT::ConfigureNotify { }
|
||||
sub EVENT::ClientMessage
|
||||
{
|
||||
if($e{type} == $x->atom('WM_PROTOCOLS') &&
|
||||
unpack('L', $e{data}) == $x->atom('WM_DELETE_WINDOW'))
|
||||
{
|
||||
$more = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
warn "Unknown $name, $e{type}\n";
|
||||
}
|
||||
}
|
||||
{
|
||||
if($e{type} == $x->atom('WM_PROTOCOLS') &&
|
||||
unpack('L', $e{data}) == $x->atom('WM_DELETE_WINDOW'))
|
||||
{
|
||||
$more = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
warn "Unknown $name, $e{type}\n";
|
||||
}
|
||||
}
|
||||
sub EVENT::AUTOLOAD { die "Sorry, no handler for $name\n" }
|
||||
|
|
|
|||
|
|
@ -1,15 +0,0 @@
|
|||
type document // abstract type for a document object
|
||||
type context = { mutable fillStyle: string, }
|
||||
|
||||
@val external doc: document = "document"
|
||||
|
||||
@send external getElementById: (document, string) => Dom.element = "getElementById"
|
||||
@send external getContext: (Dom.element, string) => context = "getContext"
|
||||
|
||||
@send external fillRect: (context, int, int, int, int) => unit = "fillRect"
|
||||
|
||||
let canvas = getElementById(doc, "my_canvas")
|
||||
let ctx = getContext(canvas, "2d")
|
||||
|
||||
ctx.fillStyle = "#F00"
|
||||
fillRect(ctx, 100, 100, 1, 1)
|
||||
|
|
@ -1,30 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Draw a Pixel</title>
|
||||
<style rel="stylesheet" type="text/css">
|
||||
body {
|
||||
background-color:#777;
|
||||
}
|
||||
canvas {
|
||||
background-color:#888;
|
||||
margin:60px 120px;
|
||||
border:1px solid #555;
|
||||
box-shadow: -1px 2px 6px 1px rgba(0,0,0,0.3);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<canvas id="my_canvas" width="320" height="240">
|
||||
No support for HTML5 Canvas.<br />
|
||||
</canvas>
|
||||
|
||||
<script type="text/javascript" src="draw.bs.js"></script>
|
||||
|
||||
<noscript>
|
||||
No support for Javascript.<br />
|
||||
</noscript>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue