12-01-2012
Quote:
Originally Posted by
bipinajith
So are we planning to switch the drawing systems both Lotto & SuperLotto completely to Raffle instead of Lottery or are we working on debugging the drawing systems and fix the issue with Lottery?
I think we should just keep running as a Raffle for now for a couple of reasons:
- The Bits Raffle is working, the Bit Lotto is broken (big reason)
- I'm not really interesting in debugging this right now (low priority) since the Raffle is working.
- A Raffle insures a winner each round.
- We can still debug the Raffle and see how it goes over time.
So, I'll reword it to make it happen.
I actually think a Bits Raffle will be more fun, since we can play the odds against each other versus a random number drawing. Also, added more more raffle for fun.
Edit: Changes made:
![Image](https://www.unix.com/members/neo-albums-forum-pics-picture563-example-change-bits-lottery-raffle.png)
5 More Discussions You Might Find Interesting
1. Programming
Hi guys,
I'm trying to make my program to print out tables usings line-drawing character (alternate char. set) with Curses Library. However, it always prints out control characters (^@) instead of the correct ones.
code example:
mvwaddch(my_window, 23, 12, ACS_RTEE);
appreciate your help,... (5 Replies)
Discussion started by: zecoj
5 Replies
2. Shell Programming and Scripting
Hi,
Is it possible to draw circle, box and other basic shapes using shell scripts ?
If so can anyone please tell as how to do it.
Thanks in advance. (3 Replies)
Discussion started by: abrd600
3 Replies
3. Programming
I made a program that prints dots and lines in a Page. So far that's all i could come up with.
When i try to print the lines and the dots it just prints consecutive points,I want it to print the points & lines in the page's coordinates.
I have been stuck for a long time now. Please Help.
... (12 Replies)
Discussion started by: Max_Payne
12 Replies
4. Programming
Hi all,
I'm currently learning xlib and I've encountered a bizarre mistake: function calls such as XDrawPoint, XDrawLine, etc., don't seem to work; a blank window with nothing in is appears. I believe this has something to do with the window manager I use, fluxbox.
After checking the code and... (0 Replies)
Discussion started by: hydronium
0 Replies
5. UNIX for Advanced & Expert Users
Hello All,
I want to get ride of Excel/word and want some software to draw my server room racks/server and overall topology. Please share you opinion/experience. thanks inadvance (1 Reply)
Discussion started by: Vit0_Corleone
1 Replies
LEARN ABOUT PHP
imagesetbrush
IMAGESETBRUSH(3) 1 IMAGESETBRUSH(3)
imagesetbrush - Set the brush image for line drawing
SYNOPSIS
bool imagesetbrush (resource $image, resource $brush)
DESCRIPTION
imagesetbrush(3) sets the brush image to be used by all line drawing functions (such as imageline(3) and imagepolygon(3)) when drawing with
the special colors IMG_COLOR_BRUSHED or IMG_COLOR_STYLEDBRUSHED.
PARAMETERS
o $
image -An image resource, returned by one of the image creation functions, such as imagecreatetruecolor(3).
o $brush
- An image resource.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
imagesetbrush(3) example
<?php
// Load a mini php logo
$php = imagecreatefrompng('./php.png');
// Create the main image, 100x100
$im = imagecreatetruecolor(100, 100);
// Fill the background with white
$white = imagecolorallocate($im, 255, 255, 255);
imagefilledrectangle($im, 0, 0, 299, 99, $white);
// Set the brush
imagesetbrush($im, $php);
// Draw a couple of brushes, each overlaying each
imageline($im, 50, 50, 50, 60, IMG_COLOR_BRUSHED);
// Output image to the browser
header('Content-type: image/png');
imagepng($im);
imagedestroy($im);
imagedestroy($php);
?>
The above example will output something similar to:[NOT DISPLAYABLE MEDIA]Output of example : imagesetbrush()
NOTES
Note
You need not take special action when you are finished with a brush, but if you destroy the brush image, you must not use the
IMG_COLOR_BRUSHED or IMG_COLOR_STYLEDBRUSHED colors until you have set a new brush image!
PHP Documentation Group IMAGESETBRUSH(3)