Find Jobs
Hire Freelancers

Bresenham's line algorithm in C++

$5-10 USD

クローズ
投稿日: 21年以上前

$5-10 USD

完了時にお支払い
Use Bresenham's algorithm to draw lines with varying thickness and in solid vs. dashed format. Use the weighted-intensity anti-aliasing approach to draw anti-aliased lines. (Note,no need to vary the thickness or style for the anti-aliased lines.) A sample program and makefile are provided showing the grid 0 to 500 in x and y with the origin in the lower left corner. The only opengl calls to be used are glVertex3i and glColor3f to plot pixels and select their color (intensity), respectively. The project is to to modify the given program to include the functionality described above and the resulting program will perform as follows: 1) The compiled program run as "line" will use lines to plot the first four letters of your name. While letters like T and X are very easy, for letters like 'S' you will need to plot a number of line segments that form the shape of the 'S'. No curves required this assignment. You may use regular or anti-aliased lines for this step. 2) The compiled program run as "line filename" will read the data file called 'filename' accepting and drawing requests for different line segments until the end of the file. Each request will have the form "x1 y1 x2 y2 code" where code is either "0" for a line with weighted-intensity based anti-aliasing, "1" for a dashed line, and "2" thru "9" for differing thicknesses where the code specifies how thick the solid line segment should be in pixels (i.e. "4" means a line of thickness 4). Obviously, x1 y1 is the start of the line segment and x2 y2 is the end of the line segment. All values of x and y will be integers between 0 and 500 inclusive. One request for a line segment will be made per line of the file. 3) try to get rid of the gaps which appear when two lines cross , like an X. and incoroparate the X into the first part. ## Deliverables 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request. 3) Complete ownership and distribution copyrights to all work purchased. ## Platform C++ which runs under Linux
プロジェクト ID: 2901523

プロジェクトについて

2個の提案
リモートプロジェクト
アクティブ 21年前

お金を稼ぎたいですか?

Freelancerで入札する利点

予算と期間を設定してください
仕事で報酬を得る
提案をご説明ください
登録して仕事に入札するのは無料です
この仕事に2人のフリーランサーが、平均$9 USDで入札しています
ユーザーアバター
See private message.
$8.50 USD 14日以内
5.0 (30 レビュー)
4.6
4.6
ユーザーアバター
See private message.
$8.50 USD 14日以内
4.2 (111 レビュー)
4.4
4.4

クライアントについて

UNITED STATESのフラグ
United States
5.0
1
メンバー登録日:1月 21, 2003

クライアント確認

ありがとうございます!無料クレジットを受け取るリンクをメールしました。
メールを送信中に問題が発生しました。もう一度お試しください。
登録ユーザー 投稿された仕事の合計
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
プレビューを読み込み中
位置情報へのアクセスが許可されました。
あなたのログインセッションの有効期限がきれ、ログアウトされました。もう一度ログインしてください。