KANSI V1.0 written by James Killian 26 may 96 Kansi- (kick ass ansi editor) :) This ansi editor goes far beyond any other I have worked with, I had a vision back in '92 of doing some digitized ansi. This Ansi Editor does just that! You can Use you favorite IFF drawing editor to make a Hires Picture (or use any Hi-res picture) and the Editor will convert the IFF to Ansi. From there you can use the Editor to enhance the picture to perfection! This Ansi Editor is specifically designed to Use IBM.font 8 standard colors for a 640x200 screen. Ansi Editor was made for Sysops like myself to have a nice touch to the BBS. I have seen some good ansi, but nothing like this! Well since this is the first release, it is bare. I barely had enough time to get the necessary things to work. The Editor is completly Keyboard Driven. (With the exception of the dither options in the menu) The Keyboard is able to access all color combinations, and characters in the IBM.font. So without Further Due let me list the Keyboard functions * * * * * * * KEYS * * * * * * * --------------------color editing------------------------ To Change Color ctrl-f change Foreground color to use these hold ctrl and 'f' ctrl-b change Background color or 'b' then hit a number 0-7 Note: the cursor is split in half to show the colors you selected To lock color ctrl-c this will allow you to change chars with out changing the colors. hit ctrl-c again to unlock both colors. Note: the cursor will not show the current colors in lock mode it only reflects the colors you selected. To Unlock only one Color ctrl-x Unlock foreground color You must lock before you can unlock ctrl-v Unlock background color Ie. holding control hit cvb2 will change the background to green and leave the foreground untouched To Lock Text F1 hold this down to change colors without changing the text ------------------Text char Editing------------------------- ctrl-0 or shift Del will toggle insert mode shift backspace will manual insert (like the C-64) ctrl-1 or Del will delete char backspace will delete backspace (like the C-64) ctrl-t will delete char vertically (top to bottom) ctrl-shift-t will insert char vertically (top to bottom) Note: all inserts make char repeating possible! ------------------Text Line Editing------------------------- ctrl-y will delete entire line (like wordstar) shift-ctrl y will insert line (the only way to do this) ctrl-del will delete vertical line ctrl-shift-del will insert vertical line Note: with the above 4 functions you will be able to move entire picture around for example to center picture in middle of the screen. -------------------Block Editing------------------------------ ctrl-[ set block begin or drag mouse from start to end ctrl-] set block end Note: block has not been fully implemented yet, it only works for ansi generation at this time. -------------------Miscellanous Key Functions------------------- ESC will exit quickly F1 will lock text (for color change) F6 will restore iffansi selective dither char F7 will restore iffansi nondithered char F8 will restore iffansi dither char Note: F6-F8 only work when IffAnsi is used Right Amiga- I,L,O,Q,R,S,W see menus below caps lock- Will allow the keyboard to use the best char set from IBM font this mode the special chars are stategicly placed to easily be remembered, i.e. qwe will make a window asd zxc shift-caps lock- This is the other favorite char set which complements the caps lock, room for future use in this mode left alt- here is half the remainder of chars, ones I didn't particullarly care to deal with, but you can access them in this mode right alt- the last bunch of remainders... Note: for the alt keys, use shift with alt to fully access all remainders Shift- does the regular shifts capital letters etc.. * * * * * * * MENUS * * * * * * * -------------------Project-------------------- Open... Opens the following Iff- see below (IFFANSI) for how to use this Work- loads workfile called work.kansi (must be 4000 bytes) Ansi- (not supported at this time) Save... Saves the following formats Work- save entire screen called ram:work.kansi (4000 bytes) Ansi- save selected screen called ram:work.ansi Quit Exits no abandon check implemented yet Note, for saveansi you need to set the block area using the block keys (see above) or drag the mouse, the default will generate the entire screen. Use your favorite ansi optomiser, to incorperate tabs, etc. this generation of ansi will optomise the colors. -------------------Commands-------------------- Refresh Refreshes screen shouldn't have to be used at all Clr Screen clears the screen to black .................................................................. Show Dither show Iffansi dither method 2 Hide Dither show Iffansi char manipulation method 1 Show Both show a combination of the above When Iffansi runs its default will show a combination of both methods. Use these menus to see what preferred starting method you would like to start editing with; then use F6-F8 to individually manipulate the chars to fit one of the 3 methods above. Sometimes its good to save work then hit these to get an idea of what to improve NOTE! selecting the above will destroy previous work, so save before calling these (may have it auto save in the future) ................................................................... * * * * * * * * * IFF ANSI * * * * * * * * * * * The one thing which really needs to be done, is to have the IFFANSI program to be able to convert any IFF to work with. So until then you need to generate the following files to ram: ansi 48000 bytes 3 plane nondithered raw IFF image ansi.palette 132 bytes palette to define ansi2 ansi2 64000 bytes 4 plane dithered raw IFF image ansitable.dat 8192 bytes (included with program) ---------------ansi------------ the ansi 3 plane nondithered raw iff image, needs to remapped to correspond the standard ansi pallete of black,red,green,yellow,blue,purple,cyan,white 000 f00 0f0 ff0 00f 0ff 0ff fff it needs to be 640x200 raw and NON DITHERED ---------------ansi.palette--------- this needs to define the 16 colored pallete of the ansi2 image, these can be any colors, the only catch is the offset for the palette must start at an offset of 48, $30. and for 16 colors *3 bytes so... 0x0030 f0 f0 f0 <--this would be white as color number one note the high nibble is what is read, the low nibble is what is ignored, hopefully you won't have to regenerate this file. -------------ansi2----------------- This file is 640x200 raw dithered, same image of course the palette can be any pallete and is defined in ansi.palette Once these files are in Ram: simply click on Open IFF, in Menus or hit Right amiga I, and the screen will scan line fill with the new ansi representation of the iff file. Note that for an amiga 500 it takes a whopping 13 minutes to fully render, and on the Amiga 4000 it takes 40 seconds. Wow this is good compare test proggy for processor speed :) ********************************************************************** Future Releases.... Well I'll be taking requests, and money too they go hand in hand ;) What I really need is some C source code on how to read iff files, so that the IFF ansi will work better. I also need to learn how to use the ASL. requestor to incorpate selecting files. this will be the first fix I'll initiate. This file is Public Domain, a promotion for Amiga users, I hope to see better rendered pictures on Amiga BBS's in the near future. Of course i'll be looking for other programming opportunities. So be on the look out for the future release of this and other projects I do. Comments, send snail mail to... James Killian PSC#1 box 719 2401 kelly drive Lackland AFB, Tx 78236-5128 or Call Voice (210)673-2661 or Call my BBS (210)673-1523 (it may be down for a while)