Skip to content

Commit 129f27b

Browse files
committed
Letter P added to starwar
1 parent d9342ff commit 129f27b

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

Fonts/starwar/starwar.h

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,16 +209,22 @@ class Starwar : public Fonts
209209
}
210210
*/
211211

212-
/*
212+
213213
char **P()
214214
{
215215
char **character = getCharGrid();
216216

217217
//Enter the character grid in ROWS X COLS
218+
character[2][4] =character[1][4] = character[2][4] = character[0][1] = character[0][2] = character[0][3] = character[0][4] = character[0][5] = character[0][6] = character[5][2] = character[3][5] = character[3][4] = character[3][6]= '_';
219+
character[1][0] = character[2][0] = character[3][0] = character[4][0] = character[5][0] = character[2][8] = character[2][3] = character[4][3] = character[5][3] = '|';
220+
character[1][7] = '\\';
221+
character[0][0] ='.';
222+
character[3][7] = '/';
223+
character[2][5] = ')';
218224

219225
return character;
220226
}
221-
*/
227+
222228

223229
/*
224230
char **Q()
@@ -285,7 +291,7 @@ class Starwar : public Fonts
285291
char **V()
286292
{
287293
char **character = getCharGrid();
288-
294+
289295
//Enter the character grid in ROWS X COLS
290296
291297
return character;

example.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ using namespace ascii;
55

66
int main()
77
{
8-
Ascii a = Ascii(straight);
9-
a.print("Z");
8+
Ascii a = Ascii(starwar);
9+
a.print("P");
1010
return 0;
1111
}

0 commit comments

Comments
 (0)