Posts: 489
Threads: 34
Joined: Jan 2005
according to qb (and fb) documentation on draw, it should default to "s4", but it doesn't in gfxlib2, but instead defaults to some larger value. (at least, it did in my test...)
ttp://m0n573r.afraid.org/
Quote:quote: "<+whtiger> you... you don't know which way the earth spins?" ... see... stupidity leads to reverence, reverence to shakiness, shakiness to... the dark side
...phear
Posts: 1,272
Threads: 36
Joined: Feb 2003
Doesn't s4 mean the a U will move up 4 pixels?
I thought the default was s1...
Posts: 489
Threads: 34
Joined: Jan 2005
Quote:Commands to scale and rotate:
Sn Sets the current unit length; default is 4 pixels per
unit.
i had to issue a draw "s4" command at the beginning of my program to get it to work right though.
ttp://m0n573r.afraid.org/
Quote:quote: "<+whtiger> you... you don't know which way the earth spins?" ... see... stupidity leads to reverence, reverence to shakiness, shakiness to... the dark side
...phear
Posts: 268
Threads: 9
Joined: Dec 2004
This is weird: somewhere I read the default unit size in QB was 4 pixels, so I implemented it this way... But now I've opened QB again and it says the default unit size is 1 pixel :???:
What is the correct one??
Posts: 489
Threads: 34
Joined: Jan 2005
Quote:âââââââââââââââââââââââââââââUsed to Scale and Rotateââââââââââââââââââââââââââ
âSn Increases or decreases length of â An Rotate (n * 90) degrees,
â moves (n=4 is default) â where n = 0, 1, 2, or 3
â â TAn Rotate (0 >= n <= 360) degrees
ttp://m0n573r.afraid.org/
Quote:quote: "<+whtiger> you... you don't know which way the earth spins?" ... see... stupidity leads to reverence, reverence to shakiness, shakiness to... the dark side
...phear
Posts: 1,272
Threads: 36
Joined: Feb 2003
But I've used DRAW a lot, and trust me, U moves up 1 pixel, not 4 pixels.
Posts: 1,774
Threads: 62
Joined: Aug 2003
In QBX, it says that the default factor for Scaling is 4, which causes no scaling.
Posts: 268
Threads: 9
Joined: Dec 2004
It seems M$ coders couldn't standardize on this (well duh, when you think about standards, M$ has never been on the edge) as different QB versions used different default DRAW unit.
So again, what default unit FB should adopt?
Posts: 336
Threads: 4
Joined: Nov 2004
lillo the gfx's lib is your baby i say you pick which stander you go with and everyone else can just live with it.
Posts: 489
Threads: 34
Joined: Jan 2005
i think that "s4" sets the scale to 1 pixel per unit. lower numbers, such as "s2", would set .5 pixels per unit, etc.
ttp://m0n573r.afraid.org/
Quote:quote: "<+whtiger> you... you don't know which way the earth spins?" ... see... stupidity leads to reverence, reverence to shakiness, shakiness to... the dark side
...phear