Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
24 May, 2013, 18:45:05 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: [1]   Go Down
  Print  
Author Topic: Axe r command -  (Read 249 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
boathouse2112
LV2 Member (Next: 40)
**
Offline Offline

Last Login: 15 March, 2013, 21:05:02
Date Registered: 02 August, 2012, 00:33:23
Posts: 23

Topic starter
Total Post Ratings: 0

View Profile
« on: 02 August, 2012, 17:41:25 »
0

In a few programs, like this greyscale snippet:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
[ffff0000ff00ff00]->Pic1F
[ff00ffff00ff00ff]->Pic1B
[ffffffff00000000]->Pic2F
[ffffff00ffff0000]->Pic2B
ClrDraw
ClrDrawr
repeat getkey(15)
Pt-Off(0,0,Pic1F)
Pt-Off(0,0,Pic1B)r
DispGraphrr
Pt-Off(0,0,Pic2F)
Pt-Off(0,0,Pic2B)r
DispGraphrr
End
there's a command "r" following some of the parentheses. I tried looking it up in the documentation, but can't find anything on it. Any help as to what it is?
Logged
calc84maniac
Epic z80 roflpwner
Coder Of Tomorrow
LV11 Super Veteran (Next: 3000)
*
Offline Offline

Gender: Male
Last Login: Today at 15:37:20
Date Registered: 28 August, 2008, 05:09:05
Location: Right behind you.
Posts: 2735


Total Post Ratings: +373

View Profile
« Reply #1 on: 02 August, 2012, 17:43:26 »
0

The "r" suffix (which is the radian symbol from the ANGLE menu) is typically used to denote an alternate version of a command. In the case of graphics commands, usually it means that it should be drawn to the second buffer, or "backbuffer". Grayscale uses the main buffer and the backbuffer together to create the full 4-level image.
Logged

"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman
Sorunome
Muffins
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: Today at 01:13:29
Date Registered: 26 September, 2011, 17:46:38
Location: Ponyville
Posts: 2947


Total Post Ratings: +161

View Profile WWW
« Reply #2 on: 02 August, 2012, 17:44:31 »
0

First of all, it is the radian r.
Second, used behind something drawing thingy (like pt-off) it tells it to draw it to backup-buffer, and you need DispGraphrr instead of DispGraph for 4-level greyscale.
DispGraphrr must be called very often otherwise it won't appear as greyscale

You could also optimize that code Tongue
Spoiler for Hidden:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
[ffff0000ff00ff00]->Pic1F
[ff00ffff00ff00ff]->Pic1B
[ffffffff00000000]->Pic2F
[ffffff00ffff0000]->Pic2B
ClrDraw
ClrDrawr
Pt-Off(0,0,Pic1F)
Pt-Off(0,0,Pic1B)r
Pt-Off(0,0,Pic2F)
Pt-Off(0,0,Pic2B)r
repeat getkey(15)
DispGraphrr
End
EDIT: y u ninja me calc84maniac Big frown
« Last Edit: 02 August, 2012, 17:45:06 by Sorunome » Logged

http://z0r.de/4017
http://www.youtube.com/watch?v=BFOoazEx9lU
http://www.sorunome.de
http://reubenquest.net
+++++++[>++++++++++++<-]>.<+++[>----<-]>.---.<++++[>>++++++++<<-]>>.<++.------.++++++++++++.--------.

++++++[>++++++++++<-]>++++++++.<+++[>+++++++++++<-]>.+++++++++++++.--.<+++[>+++<-]>.<+++[>>++++++++++<<-]>>++.<<+++++++[>-------<-]>.<+++[>+++++++++++++<-]>..+++++++.<+++[>-----<-]>--.<++[>++++++<-]>++.

If OmnomIRC is screwed up, blame me Tongue

Save Derpy!(http://www.youtube.com/watch?v=cg-_HeVNYOk)
Spoiler for spoilers:


Spoiler for languages:
- TI-BASIC
 - TI-Highbrid Basic
 - Grammer
 - Axe
 - HTML
 - JavaScript
 - CSS
 - PHP
 - C++
 - lua
 - Python
 - MYSQL
 - Brainf*ck
 - English
 - German
Spoiler for internet:
/image/36691.png[/img]
Gimme internet NOW
Spoiler for me:
Spoiler for my little game:
my little game...my little game..aaaaaahhhhhh...my little game, i used to wonder how to lose the game, my little game, until you shared its losing with me. take the losing and the game, a beutiful game so losable, sharing losing is a easy sweat and losing makes it aweful neat to have my little game togeather with my very best games.
Spoiler for stuff:
Spoiler for derpy:



boathouse2112
LV2 Member (Next: 40)
**
Offline Offline

Last Login: 15 March, 2013, 21:05:02
Date Registered: 02 August, 2012, 00:33:23
Posts: 23

Topic starter
Total Post Ratings: 0

View Profile
« Reply #3 on: 02 August, 2012, 17:48:08 »
0

Thanks for the answer. The code was copypasta from a tutorial.
Logged
Deep Thought
So much to do, so much time, so little motivation
Administrator
LV13 Extreme Addict (Next: 9001)
*
Offline Offline

Gender: Male
Last Login: Today at 03:26:33
Date Registered: 19 May, 2009, 08:00:00
Location: The Universe
Posts: 7813


Total Post Ratings: +706

View Profile WWW
« Reply #4 on: 02 August, 2012, 17:48:21 »
0

If you look in Commands.html (it's got all the Axe commands documented), you'll see the commands that have a radian r suffix. It'll tell you what it does to the command.
Logged




Sorunome
Muffins
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: Today at 01:13:29
Date Registered: 26 September, 2011, 17:46:38
Location: Ponyville
Posts: 2947


Total Post Ratings: +161

View Profile WWW
« Reply #5 on: 02 August, 2012, 17:48:41 »
0

Oh, lol
Then the tutorial isn't good Tongue

EDIT: forget my 'optimization', i didn't look at the possition of the sprites, lol
« Last Edit: 02 August, 2012, 17:51:12 by Sorunome » Logged

http://z0r.de/4017
http://www.youtube.com/watch?v=BFOoazEx9lU
http://www.sorunome.de
http://reubenquest.net
+++++++[>++++++++++++<-]>.<+++[>----<-]>.---.<++++[>>++++++++<<-]>>.<++.------.++++++++++++.--------.

++++++[>++++++++++<-]>++++++++.<+++[>+++++++++++<-]>.+++++++++++++.--.<+++[>+++<-]>.<+++[>>++++++++++<<-]>>++.<<+++++++[>-------<-]>.<+++[>+++++++++++++<-]>..+++++++.<+++[>-----<-]>--.<++[>++++++<-]>++.

If OmnomIRC is screwed up, blame me Tongue

Save Derpy!(http://www.youtube.com/watch?v=cg-_HeVNYOk)
Spoiler for spoilers:


Spoiler for languages:
- TI-BASIC
 - TI-Highbrid Basic
 - Grammer
 - Axe
 - HTML
 - JavaScript
 - CSS
 - PHP
 - C++
 - lua
 - Python
 - MYSQL
 - Brainf*ck
 - English
 - German
Spoiler for internet:
/image/36691.png[/img]
Gimme internet NOW
Spoiler for me:
Spoiler for my little game:
my little game...my little game..aaaaaahhhhhh...my little game, i used to wonder how to lose the game, my little game, until you shared its losing with me. take the losing and the game, a beutiful game so losable, sharing losing is a easy sweat and losing makes it aweful neat to have my little game togeather with my very best games.
Spoiler for stuff:
Spoiler for derpy:



Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.233 seconds with 30 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.